BA 425 then EW 7465 at Heathrow
Málaga → London → Hamburg
Timetable, London time
20:40BA 425 from Málaga at the gate
19:20EW 7465 to Hamburg leaves the gate
22 h 40 apart on the timetable, overnight
EW 7465 leaves 22 h 40 after BA 425 arrives on the timetable: more than half a day, so not a connection we count.