FR 9673 then FR 6612 at Madrid
Rome → Madrid → Rabat
Timetable, Madrid time
20:15FR 9673 from Rome at the gate
17:10FR 6612 to Rabat leaves the gate
20 h 55 apart on the timetable, overnight
FR 6612 leaves 20 h 55 after FR 9673 arrives on the timetable: more than half a day, so not a connection we count.