Restricted free agent Kelly Oubre Jr. has agreed to a two-year, $30 million deal to stay with the Phoenix Suns, agent Nima Namakian of BDA Sports told ESPN's Adrian Wojnarowski.

The deal gives the 6-foot-7 small forward financial security now, with an opportunity to return to the marketplace as a 25-year-old unrestricted free agent in 2021. The Suns had the right to match any offer he received from another team.

Oubre thrived in Phoenix after a December trade sent him and Austin Riversfrom the Wizards to the Suns for Trevor Ariza. In 40 games (12 starts) for Phoenix, Oubre posted career highs in points (16.9), field goal percentage (45.3), rebounds (4.9) and assists (1.6).