U2 7676 then IB 536 at Lisbon
Marrakesh → Lisbon → Madrid
Timetable, Lisbon time
23:05U2 7676 from Marrakesh at the gate
18:45IB 536 to Madrid leaves the gate
19 h 40 apart on the timetable, overnight
IB 536 leaves 19 h 40 after U2 7676 arrives on the timetable: more than half a day, so not a connection we count.