FR 189 then FR 6608 at Madrid
Edinburgh → Madrid → Rabat
Timetable, Madrid time
19:25FR 189 from Edinburgh at the gate
10:10FR 6608 to Rabat leaves the gate
14 h 45 apart on the timetable, overnight
FR 6608 leaves 14 h 45 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.