AT 981 then AT 1456 at Casablanca
Lisbon → Casablanca → Essaouira
Timetable, Casablanca time
14:00AT 981 from Lisbon at the gate
11:05AT 1456 to Essaouira leaves the gate
21 h 05 apart on the timetable, overnight
AT 1456 leaves 21 h 05 after AT 981 arrives on the timetable: more than half a day, so not a connection we count.