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