Jimmy Butler has gotten his wish. He’s being traded out of Miami.

The Heat and the Golden State Warriors have agreed on a deal that sends Butler to the Bay Area, a person with knowledge of the talks said Wednesday. The trade ends a Miami era for Butler that will be remembered first for two trips to the NBA Finals and then three suspensions toward the end of a hostile breakup.

Golden State is making it happen by moving Andrew Wiggins, Dennis Schroder, Kyle Anderson and draft compensation out in the deal, said the person, who spoke to The Associated Press on condition of anonymity.

It wasn’t immediately clear if all three of those players were ending up in Miami.

Golden State becomes Butler’s fifth team, after stints in Chicago, Minnesota, Philadelphia and Miami. His arrivals were celebrated in all four cities, and his departures weren’t exactly smooth.

But with the Warriors, he joins Stephen Curry and Draymond Green — two players left who have been part of all four recent Golden State title teams, with hopes of getting back to contention.

Butler’s breakup with the Heat brewed for months. The primary issue that caused the beginning of the end of his Miami stint was money; he’s eligible for a two-year, $113 million extension and the Heat never offered such a deal, largely because he’s missed about 25% of the team’s games since he arrived in 2019.

There were other factors as well. Neither side was particularly happy with the other at the end, and it became evident that the fracture couldn’t be repaired.

Butler can be difficult to deal with and the Heat “culture” is such where it works best when everyone is aligned with team ideals. When he said he didn’t expect to find on-court joy with the Heat again in early January, he was suspended for seven games as the last straw on a list of what the team called detrimental conduct.

That was the start of a wild ending: Butler was suspended three times in January alone, the second a two-game ban for missing a team flight, the last an indefinite one of at least five games that followed him leaving shootaround early after learning he wasn’t going to start a Jan. 27 game.

“There was a lot said by everybody, except for me, to tell you the truth,” Butler said after his first game back following the first suspension. “We’ll let people keep talking. ... The whole truth will come out.”

He never said he wanted a trade; at least, not openly, because it’s not allowed by league rule and would have subjected him to a fine of up to $150,000. The Heat said Butler asked for one and when that was revealed the team also changed course from team president Pat Riley’s December vow not to trade him; when the suspension was announced, the Heat said they were trying to make a trade happen.

But there were obvious signs; his hair color for some games just happened to be in the colors of Phoenix, Dallas, Golden State and Houston — the four teams that were most prominently mentioned as possible trade partners for Miami.