U2 856 then BA 2808 at Gatwick
Aberdeen → London → Agadir
Timetable, London time
07:40U2 856 from Aberdeen at the gate
07:30BA 2808 to Agadir leaves the gate
23 h 50 apart on the timetable, overnight
BA 2808 leaves 23 h 50 after U2 856 arrives on the timetable: more than half a day, so not a connection we count.