FR 6712 then IB 531 at Madrid
Budapest → Madrid → Lisbon
Timetable, Madrid time
12:55FR 6712 from Budapest at the gate
11:25IB 531 to Lisbon leaves the gatealso CX 1829, VY 5071, QR 5093, AA 8528, AA 8686
22 h 30 apart on the timetable, overnight
IB 531 leaves 22 h 30 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.