BA 423 then BA 277 at Heathrow
Málaga → London → Hyderabad
Timetable, London time
15:15BA 423 from Málaga at the gate
14:35BA 277 to Hyderabad leaves the gate
23 h 20 apart on the timetable, overnight
BA 277 leaves 23 h 20 after BA 423 arrives on the timetable: more than half a day, so not a connection we count.