WN 3864 then UA 5980 at Phoenix
San Diego → Phoenix → Lagos
Timetable, Phoenix time
19:40WN 3864 from San Diego at the gate
19:37UA 5980 to Lagos leaves the gate
23 h 57 apart on the timetable, overnight
UA 5980 leaves 23 h 57 after WN 3864 arrives on the timetable: more than half a day, so not a connection we count.