HV 5951 then UX 1156 at Lisbon
Amsterdam → Lisbon → Madrid
Timetable, Lisbon time
19:00HV 5951 from Amsterdam at the gate
16:05UX 1156 to Madrid leaves the gate
21 h 05 apart on the timetable, overnight
UX 1156 leaves 21 h 05 after HV 5951 arrives on the timetable: more than half a day, so not a connection we count.