EK 4988 then U2 8026 at Madrid
Lisbon → Madrid → London Gatwick
Timetable, Madrid time
20:20EK 4988 from Lisbon at the gate
19:35U2 8026 to London Gatwick leaves the gate
23 h 15 apart on the timetable, overnight
U2 8026 leaves 23 h 15 after EK 4988 arrives on the timetable: more than half a day, so not a connection we count.