AT 972 then FR 2063 at Madrid
Casablanca → Madrid → Palma de Mallorca
Timetable, Madrid time
12:00AT 972 from Casablanca at the gate
06:00FR 2063 to Palma de Mallorca leaves the gate
18 h apart on the timetable, overnight
FR 2063 leaves 18 h after AT 972 arrives on the timetable: more than half a day, so not a connection we count.