FR 5377 then FR 6791 at Madrid
Brussels Charleroi → Madrid → Marrakesh
Timetable, Madrid time
12:20FR 5377 from Brussels Charleroi at the gate
09:25FR 6791 to Marrakesh leaves the gate
21 h 05 apart on the timetable, overnight
FR 6791 leaves 21 h 05 after FR 5377 arrives on the timetable: more than half a day, so not a connection we count.