W9 5724 then U2 8317 at Gatwick
Málaga → London → Pisa
Timetable, London time
12:55W9 5724 from Málaga at the gate
09:00U2 8317 to Pisa leaves the gate
20 h 05 apart on the timetable, overnight
U2 8317 leaves 20 h 05 after W9 5724 arrives on the timetable: more than half a day, so not a connection we count.