FR 393 then FR 6608 at Madrid
Ibiza → Madrid → Rabat
Timetable, Madrid time
16:35FR 393 from Ibiza at the gate
13:40FR 6608 to Rabat leaves the gate
21 h 05 apart on the timetable, overnight
FR 6608 leaves 21 h 05 after FR 393 arrives on the timetable: more than half a day, so not a connection we count.