Jimmy Butler and Bam Adebayo each had triple-doubles to help Miami win in Sacramento for the first time in nearly five years.
Jimmy Butler had 30 points, 10 rebounds and 10 assists for Miami.
Florida recorded its first win in Tampa Bay since March 26. 2016, a span of eight games.
Kendrick Nunn scored 20 points for Miami while Jimmy Butler added 15 points, eight rebounds and five assists.
Goaltender Sergei Bobrovsky struggled in the loss for Florida, allowing six goals on just 28 shots.
Miami won its fourth straight and handed Houston its fourth loss in a row.
Sergei Bobrovsky made 19 saves and the Panthers received goals from five different players in the team's biggest win of the young season.
Miami has now won three straight games for the first time this season.