FR 2527 then UX 5431 at Madrid
Berlin → Madrid → Málaga
Timetable, Madrid time
23:10FR 2527 from Berlin at the gate
21:45UX 5431 to Málaga leaves the gatealso AD 6916
22 h 35 apart on the timetable, overnight
UX 5431 leaves 22 h 35 after FR 2527 arrives on the timetable: more than half a day, so not a connection we count.