UX 1516 then UX 5433 at Madrid
Munich → Madrid → Málaga
Timetable, Madrid time
13:35UX 1516 from Munich at the gate
10:55UX 5433 to Málaga leaves the gatealso AD 6919
21 h 20 apart on the timetable, overnight
UX 5433 leaves 21 h 20 after UX 1516 arrives on the timetable: more than half a day, so not a connection we count.