AA 3183 then UA 5959 at Phoenix
Chicago O'Hare → Phoenix → Lagos
Timetable, Phoenix time
16:25AA 3183 from Chicago O'Hare at the gate
16:08UA 5959 to Lagos leaves the gate
23 h 43 apart on the timetable, overnight
UA 5959 leaves 23 h 43 after AA 3183 arrives on the timetable: more than half a day, so not a connection we count.