IB 535 then FR 4390 at Lisbon
Madrid → Lisbon → Marrakesh
Timetable, Lisbon time
18:05IB 535 from Madrid at the gate
16:50FR 4390 to Marrakesh leaves the gate
22 h 45 apart on the timetable, overnight
FR 4390 leaves 22 h 45 after IB 535 arrives on the timetable: more than half a day, so not a connection we count.