Dak Prescott has a new contract with the Dallas Cowboys hours before their season opener at Cleveland.

The star quarterback and the Cowboys agreed on a $240 million, four-year contract, the first in NFL history to average $60 million per season, a person with knowledge of the deal told The Associated Press on Sunday. The person spoke to the AP on condition of anonymity because the deal hasn’t been announced.

The runner-up in NFL MVP voting was entering the final year of a $160 million, four-year contract that was a franchise record before this deal. It includes $231 million guaranteed, the person said, $1 million more than the record fully guaranteed deal Deshaun Watson signed with the Browns two years ago.

“I know that these numbers are beyond anything that I could have ever imagined,” owner and general manager Jerry Jones told reporters about an hour before kickoff against Cleveland.

Prescott has led the Cowboys to the playoffs the past three seasons and five times in his first eight years. But Dallas is looking for a postseason breakthrough that hasn’t happened since the last of the franchise’s five Super Bowl titles to cap the 1995 season.

The 31-year-old said repeatedly he wanted to stay with Dallas and be the QB to get the club past the divisional round for the first time in 29 years. Prescott now will get that chance.

“This was the thing to do for what we’re here for and that is to win a championship,” Jones said. “I gave everything I ever had or hoped to have to get a chance to be a part of the Cowboys. And it’s beyond my fondest dreams where we stand today.”

The deal with Prescott comes less than two weeks after Dallas made All-Pro receiver CeeDee Lamb the second-highest paid player at his position with a $136 million, four-year contract.

Lamb missed all of training camp while holding out for a new deal as he entered the final year of his five-year rookie contract.

Prescott was a fourth-round pick out of Mississippi State in 2016 when Tony Romo was entering his 10th full season as the starter.

Romo injured his back in a preseason game, which led to Prescott starting from Week 1 of his rookie season after backup Kellen Moore also was injured before the opener.

After losing to the New York Giants, Prescott led an 11-game winning streak that was a franchise record in a single season.

Prescott edged teammate Ezekiel Elliott, his running back, for 2016 NFL Offensive Rookie of the Year honors as they led the Cowboys to the top seed in the NFC before losing their playoff debut to the Green Bay Packers.

All three of his predecessors are still ahead of Prescott in career wins, with Prescott five shy of Romo’s 78 in third. Prescott is second in TDs, 45 behind Romo, and third in yards behind Romo and Troy Aikman.