Free agent cornerback Aqib Talib has agreed to a one-year contract to remain with the New England Patriots, according to a person familiar with the situation.

The Redskins tried to sign Talib, the person said, speaking on the condition of anonymity because the deal with the Patriots had not been announced yet. The Redskins “were in play,” according to the person, who added that the Redskins’ salary “cap issues hurt” and it “just didn’t work out.”

According to another person with knowledge of the situation, Talib’s deal with New England is worth about $5 million. That apparently was too rich for the Redskins, given their tight salary cap situation.

The Redskins had hoped to reunite Talib with their secondary coach, Raheem Morris, who formerly coached him with the Tampa Bay Buccaneers. The Redskins ranked 30th among the 32 NFL teams this past season in pass defense and they released veteran cornerback DeAngelo Hall on Monday.