UA 5791 then WN 1037 at Denver
Lubbock → Denver → Phoenix Sky Harbor
Timetable, Denver time
08:51UA 5791 from Lubbock at the gate
06:00WN 1037 to Phoenix Sky Harbor leaves the gate
21 h 09 apart on the timetable, overnight
WN 1037 leaves 21 h 09 after UA 5791 arrives on the timetable: more than half a day, so not a connection we count.