EI 594 then AD 7287 at Madrid
Dublin → Madrid → Lisbon
Timetable, Madrid time
21:30EI 594 from Dublin at the gate
21:10AD 7287 to Lisbon leaves the gatealso S4 8697
23 h 40 apart on the timetable, overnight
AD 7287 leaves 23 h 40 after EI 594 arrives on the timetable: more than half a day, so not a connection we count.