FR 9441 then IB 1857 at Madrid
Lisbon → Madrid → Marrakesh
Timetable, Madrid time
22:35FR 9441 from Lisbon at the gate
19:10IB 1857 to Marrakesh leaves the gate
20 h 35 apart on the timetable, overnight
IB 1857 leaves 20 h 35 after FR 9441 arrives on the timetable: more than half a day, so not a connection we count.