FR 5898 then FR 6608 at Madrid
Torino → Madrid → Rabat
Timetable, Madrid time
12:00FR 5898 from Torino at the gate
09:20FR 6608 to Rabat leaves the gate
21 h 20 apart on the timetable, overnight
FR 6608 leaves 21 h 20 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.