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