BA 977 then BA 424 at Heathrow
Berlin → London → Málaga
Timetable, London time
13:20BA 977 from Berlin at the gate
12:30BA 424 to Málaga leaves the gate
23 h 10 apart on the timetable, overnight
BA 424 leaves 23 h 10 after BA 977 arrives on the timetable: more than half a day, so not a connection we count.