Aaron Gordon is staying in Orlando for big money.

A person with knowledge of the negotiations says Gordon agreed Sunday night to a four-year, $82 million deal to remain with the Magic. The person spoke to The Associated Press on condition of anonymity because the contract has not yet been signed.

Gordon is going into his fifth season. He averaged a career-best 17.6 points per game last year for Orlando, but was limited to 58 games.

In other free agency news, former Magic guard Mario Hezonja reached an agreement to a 1-year, $6.5 million deal with the New York Knicks according to league sources. New York is giving up part of their $8.6 million midlevel exception to sign the 23-year-old Hezonja.

_ AP