U2 7652 then HV 5956 at Lisbon
Madrid → Lisbon → Amsterdam
Timetable, Lisbon time
22:35U2 7652 from Madrid at the gate
19:40HV 5956 to Amsterdam leaves the gate
21 h 05 apart on the timetable, overnight
HV 5956 leaves 21 h 05 after U2 7652 arrives on the timetable: more than half a day, so not a connection we count.