Updated

Sam Shields has agreed to re-sign with the Packers, keeping one of the top free-agent cornerbacks this offseason off the market.

Shields' agent, Drew Rosenhaus, confirmed the four-year NFL veteran agreed to a four-year, $39 million deal with a $12.5 million signing bonus. Shields on his Twitter account Saturday posted that "he was happy to be back with my family."

Undrafted out of Miami in 2010, Shields has emerged to combine with Tramon Williams to provide a solid corner tandem in Green Bay. He had 61 tackles with four interceptions and 16 passes defended last season.

Pro Football Talk first reported the deal.

This could be a busy offseason for the Packers, who are looking to add playmakers to a defense that slipped in the second half.