BA 504 then AT 981 at Lisbon
London Heathrow → Lisbon → Casablanca
Timetable, Lisbon time
12:05BA 504 from London Heathrow at the gate
11:40AT 981 to Casablanca leaves the gate
23 h 35 apart on the timetable, overnight
AT 981 leaves 23 h 35 after BA 504 arrives on the timetable: more than half a day, so not a connection we count.