Hassan Whiteside agreed to a new contract with the Heat. (AP Photo/Chuck Burton, File)

Party in the city where the heat is on, all night on the beach till the break of dawn. … Hassan Whiteside is staying in Miami. On the first day of NBA free agency, the 7-foot center announced on Snapchat — with an assist from Will Smith — and in a post on The Players’ Tribune that he will return to the Heat.

“I’ve played on eight teams since college — from Reno to Sioux Falls to Sichuan, China,” Whiteside wrote. “I am not ready for there to be a ninth.”

Whiteside averaged 14.2 points, 11.8 rebounds and 3.7 blocks per game last season. After making $980,000 in 2015-16, Whiteside’s new four-year maximum contract will be worth $98 million.

https://twitter.com/ByTimReynolds/status/748856954584465408

The Vertical reported earlier in the week that the Dallas Mavericks had become the front-runners to sign the 27-year old, who wanted to make his free agent decision quickly. After announcing his decision on Snapchat, Whiteside walked out of the room as Will Smith’s “Miami” played in the background.

Dwyane Wade, who is also a free agent, is pretty pleased to the Heat have Whiteside back in the fold.

More on NBA free agency:

Clippers reportedly want to sell Kevin Durant on ‘Big Four’ plan

Thunder hopes to sign Al Horford, reuniting him with college coach Billy Donovan

Joakim Noah expected to sign with New York Knicks

LeBron James opts out of Cavs contract, as expected