AT 987 then AT 984 at Casablanca
Tenerife South → Casablanca → Málaga
Timetable, Casablanca time
21:00AT 987 from Tenerife South at the gate
15:45AT 984 to Málaga leaves the gate
18 h 45 apart on the timetable, overnight
AT 984 leaves 18 h 45 after AT 987 arrives on the timetable: more than half a day, so not a connection we count.