KL 874 then U2 7889 at Schiphol
Hyderabad → Amsterdam → Málaga
Timetable, Amsterdam time
08:55KL 874 from Hyderabad at the gate
07:00U2 7889 to Málaga leaves the gate
22 h 05 apart on the timetable, overnight
U2 7889 leaves 22 h 05 after KL 874 arrives on the timetable: more than half a day, so not a connection we count.