BA 425 then BA 970 at Heathrow
Málaga → London → Hamburg
Timetable, London time
21:50BA 425 from Málaga at the gate
19:45BA 970 to Hamburg leaves the gate
21 h 55 apart on the timetable, overnight
BA 970 leaves 21 h 55 after BA 425 arrives on the timetable: more than half a day, so not a connection we count.