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