ENGLEWOOD, Colo. -- Just two weeks ago, Ja'Quan McMillian's teammates did a "pay the man'' celebration after he had made another big play to help seal another win.

On Thursday, the Denver Broncos did indeed pay their nickel cornerback, agreeing to a four-year deal, according to McMillian's representative, Deryk Gilmore.

Sources told ESPN's Adam Schefter and NFL Network's Ian Rapoport that the deal is worth $52 million. It means the Broncos have now retained two of their biggest prospective free agents in the past two weeks.

Cornerback Riley Moss signed a four-year, $67 million extension just before Thanksgiving. The Broncos now have cornerback Pat Surtain II signed through 2029 as well as Moss and McMillian signed through 2030.

Safety Brandon Jones is the lone remaining starter in the secondary who is scheduled to be an unrestricted free agent in March.

McMillian, considered one of the best nickel cornerbacks in the league, signed with the Broncos as an undrafted rookie in 2022 and ended up playing in one game that year -- the season finale when he had seven tackles -- and has played in all but one game since.

His uncanny knack for making impact plays in important moments has become his calling card and prompted linebacker Alex Singleton to say earlier this season "when he does it now, it's like it's not a surprise, he's just in the best spots in the biggest moments.''

The most recent was his one-handed interception he returned 35 yards for a touchdown to seal a Week 11 win over the Las Vegas Raiders. It was a play his teammates celebrated with a pay-the-man, count-that-money celebration.

After the game, Surtain was asked whether McMillian should be next on the team's list of players to extend.

"Yes, indeed, they need to make that happen,'' Surtain said that night. "I ain't going to say much about it, obviously, you know that's between him and the organization, but he's made big-time plays so hopefully we can get him. But he's going to be an expensive guy, coming soon.''

Also this season McMillian had a game-closing sack on Chiefs quarterback Patrick Mahomes to go with a game-flipping interception against Seattle Seahawks quarterback Sam Darnold. His game-changing interception of Josh Allen in the Broncos' divisional round game in January propelled the Broncos to a win over the Buffalo Bills.

"He's very smart, always dialed in, the way he goes about his business, it's very exciting, that's how he makes his plays,'' Surtain said. "Always right when we need it. In the clutch, he always comes through.''

McMillian was asked recently if he hoped the Broncos would re-sign him and he said: "I would want to stay here, of course, these are my guys. Been here five years now, you build relationships ... I'd want to be here.''

McMillian has a team-leading two interceptions to go with three sacks and 40 tackles this season.