The New York Knicks have agreed to a two-year, $31-million deal with forward Bobby Portis, his agent told ESPN's Adrian Wojnarowski.

Portis was a restricted free agent before signing the deal but the Washington Wizards have agreed to rescind his qualifying offer to allow the Knicks to sign him, a source told The Athletic's Fred Katz.

Portis becomes the third player to agree to a contract with the Knicks on the opening day of free agency, as New York reportedly also signed Julius Randle (three years, $63 million) and Taj Gibson (two years, $20 million) after striking out on all of their marquee free-agent targets.

The 24-year-old is a solid offensive reserve, averaging 14.2 points and 8.1 rebounds with the Chicago Bulls and Wizards last season.