Chris Bosh had a season-high 37 points, including the go-ahead 3-pointer with 0.5 seconds left, and the Heat beat the Portland Trail Blazers 108-107 on Saturday night.
Bosh added 10 rebounds to hand Portland just its third loss at home this season.
Wesley Matthews had 23 points for Portland, which had won seven of its previous eight.
Dwyane Wade dunked to tie it at 105 with 26 seconds left, but the Heat fouled Nicolas Batum with 7.7 seconds to go and he made both his shots, setting up Bosh's 3-pointer when Wade drove right and kicked it back to him well beyond the arc.