BA 669 then BA 870 at Heathrow
Marrakesh → London → Budapest
Timetable, London time
20:20BA 669 from Marrakesh at the gate
19:25BA 870 to Budapest leaves the gate
23 h 05 apart on the timetable, overnight
BA 870 leaves 23 h 05 after BA 669 arrives on the timetable: more than half a day, so not a connection we count.