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