Justise Winslow has agreed to sign a three-year, $39 million extension with the Miami Heat. Miami holds a team option in the third year of the deal.

Roc Nation completed the deal with Pat Riley and Andy Elisburg on Friday.

Winslow would have otherwise become a restricted free agent in 2019.

After surgery to repair a torn shoulder labrum shortened what had began as a promising 2016-17 season, Winslow played 68 games a season ago and averaged 7.8 points, 5.4 rebounds and 2.2 assists for the Heat.