FR 5930 then FR 6608 at Madrid
Fes → Madrid → Rabat
Timetable, Madrid time
16:25FR 5930 from Fes at the gate
06:15FR 6608 to Rabat leaves the gate
13 h 50 apart on the timetable, overnight
FR 6608 leaves 13 h 50 after FR 5930 arrives on the timetable: more than half a day, so not a connection we count.