BA 951 then BA 970 at Heathrow
Munich → London → Hamburg
Timetable, London time
18:30BA 951 from Munich at the gate
18:25BA 970 to Hamburg leaves the gate
23 h 55 apart on the timetable, overnight
BA 970 leaves 23 h 55 after BA 951 arrives on the timetable: more than half a day, so not a connection we count.