UA 5791 then UA 4743 at Denver
Lubbock → Denver → Salt Lake City
Timetable, Denver time
08:51UA 5791 from Lubbock at the gate
08:00UA 4743 to Salt Lake City leaves the gate
23 h 09 apart on the timetable, overnight
UA 4743 leaves 23 h 09 after UA 5791 arrives on the timetable: more than half a day, so not a connection we count.