FR 9471 then FR 6608 at Madrid
Pisa → Madrid → Rabat
Timetable, Madrid time
17:30FR 9471 from Pisa at the gate
09:20FR 6608 to Rabat leaves the gate
15 h 50 apart on the timetable, overnight
FR 6608 leaves 15 h 50 after FR 9471 arrives on the timetable: more than half a day, so not a connection we count.