The New England Patriots have agreed to a two-year, $23 million deal with Devin McCourty, according to a source.

The deal, which McCourty announced, means the safety will forgo free agency.

McCourty has been part of three Super Bowl championship teams with the Patriots.