AA 3951 then WN 3287 at Phoenix
Tucson → Phoenix → Sacramento
Timetable, Phoenix time
17:01AA 3951 from Tucson at the gate
14:55WN 3287 to Sacramento leaves the gate
21 h 54 apart on the timetable, overnight
WN 3287 leaves 21 h 54 after AA 3951 arrives on the timetable: more than half a day, so not a connection we count.