UX 5432 then IB 1049 at Madrid
Málaga → Madrid → Pamplona
Timetable, Madrid time
07:30UX 5432 from Málaga at the gatealso AD 6902
06:45IB 1049 to Pamplona leaves the gate
23 h 15 apart on the timetable, overnight
IB 1049 leaves 23 h 15 after UX 5432 arrives on the timetable: more than half a day, so not a connection we count.