KANSAS CITY, Mo. (AP) — Chris Bosh scored 21 points and Luol Deng and Shawne Williams added 19 each to help the Miami Heat win their first game in the preseason with a 115-108 victory over the Golden State Warriors on Friday night.

Trailing 103-102 with 5:16 left, Mario Chalmers hit a 3-pointer to give the Heat (1-4) a lead. Shabazz Napier added a 3-pointer 30 seconds later to extend the lead and give the Heat the victory.

Klay Thompson scored 27 points to lead the Warriors (4-1) while David Lee added 22 points. It was the first loss in the preseason for Golden State.

The Warriors led 56-47 at the half and built their advantage to 12 in the third quarter before the Heat rallied in the final period, outscoring Golden State 32-13 in the final quarter.

Former Kansas Jayhawks star Brandon Rush, who plays for the Warriors now, exited the game early due to lower back spasms.