AT 981 then AT 976 at Casablanca
Lisbon → Casablanca → Gran Canaria
Timetable, Casablanca time
13:50AT 981 from Lisbon at the gate
10:30AT 976 to Gran Canaria leaves the gate
20 h 40 apart on the timetable, overnight
AT 976 leaves 20 h 40 after AT 981 arrives on the timetable: more than half a day, so not a connection we count.