W6 2371 then FR 6608 at Madrid
Budapest → Madrid → Rabat
Timetable, Madrid time
19:15W6 2371 from Budapest at the gate
09:20FR 6608 to Rabat leaves the gate
14 h 05 apart on the timetable, overnight
FR 6608 leaves 14 h 05 after W6 2371 arrives on the timetable: more than half a day, so not a connection we count.