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