AA 3507 then UA 5980 at Phoenix
Yuma → Phoenix → Lagos
Timetable, Phoenix time
18:17AA 3507 from Yuma at the gate
17:10UA 5980 to Lagos leaves the gate
22 h 53 apart on the timetable, overnight
UA 5980 leaves 22 h 53 after AA 3507 arrives on the timetable: more than half a day, so not a connection we count.