MINNEAPOLIS (AP) — Cooper Rush’s first NFL start was a statement victory for the surging Dallas Cowboys with starting quarterback Dak Prescott stuck on the sideline.

With every opportunity to outlast the fill-in for the first-place team on the other side, Kirk Cousins and the Minnesota Vikings withered down the stretch.

Rush subbed for the injured Prescott and passed for 325 yards and two second-half touchdowns, the last a 5-yard throw to Amari Cooper with 51 seconds left in the Cowboys’ 20-16 victory over the Vikings on Sunday night.

Rush, the fifth-year backup handed the offense when Prescott was shelved in a game-time decision due to a strained right calf muscle, directed an eight-play, 75-yard drive he finished with a perfect toss to Cooper on a fade in the corner of the end zone.

Cooper had eight catches for 122 yards, and CeeDee Lamb had six receptions for 112 yards for the Cowboys (6-1), whose only lead came in that final minute. Rush connected with Cedrick Wilson for a 73-yard score on the third play of the third quarter to tie the game at 10.

Rush overcame two turnovers, both delivered by former Dallas safety Xavier Woods, to slice up the Minnesota secondary as Prescott watched approvingly from the sideline.

Kirk Cousins and the Vikings (3-4) were frequently in disarray on offense, after opening the game with a 75-yard march for a touchdown pass to Adam Thielen. Greg Joseph kicked three field goals to keep them in front for most of the night, but the Vikings totaled only 278 yards against a defense that was allowing the second-highest yards-per-play average in the NFL entering the week.

Cousins finished 23 for 35 for 184 yards, too often settling for the short dump-off option rather than pushing the ball up the field to Thielen and fellow star Justin Jefferson. Dalvin Cook had 18 carries for 78 yards, but he never found a rhythm because of all the fits and starts.

The Vikings converted only one of 13 third downs and had eight of 12 possessions last only five plays or fewer. Woods had an interception in the second quarter and forced a fumble with his first career sack in the fourth quarter, but the Vikings didn’t score after either of those gifts.

Cowboys defensive coordinator Dan Quinn had a masterful game plan that was nearly undone by a lack of discipline by his group. The defense accounted for nine of the team’s 11 penalties, including three unnecessary roughness calls during the 69-yard drive by the Vikings to take the lead on Joseph’s 24-yard kick. Nearly half of those yards came from penalties.