FR 6609 then FR 3876 at Madrid
Rabat → Madrid → Tangier
Timetable, Madrid time
21:45FR 6609 from Rabat at the gate
14:05FR 3876 to Tangier leaves the gate
16 h 20 apart on the timetable, overnight
FR 3876 leaves 16 h 20 after FR 6609 arrives on the timetable: more than half a day, so not a connection we count.