Miami scored both runs against Sabathia in the first inning, as Juan Pierre came home on an Austin Kearns double-play ball and Rob Brantly rapped a run-scoring single. Sabathia walked one and struck out two, throwing 46 of 64 pitches for strikes.
Cervelli and Hafner homered off Marlins starter John Maine, who permitted three runs and three hits over three innings, walking two and striking out two. Maine threw 38 of 67 pitches for strikes.
Cervelli slugged a solo blast to left field in the second inning, his first of the spring, and Hafner belted a two-run shot in the third inning for his first in a Yankees uniform.
Yankees third baseman Ronnier Mustelier, considered an outside contender to make the big league club, left the game after suffering multiple contusions to both legs when he collided with a metal railing in pursuit of a fourth-inning foul pop.
Playing his second game at shortstop this spring, Yankees captain Derek Jeter went 1-for-3 and turned a double play in the third inning, doubling off Kevin Kouzmanoff at first base on a Kearns liner.
Nick Green and Gorkys Hernandez had three hits apiece for the Marlins.
Up next: Henderson Alvarez will make his first start since returning from the World Baseball Classic when the Marlins visit the New York Mets on Saturday at 1:10 p.m. ET on MLB.TV. The Venezuelan right-hander was the losing pitcher in a 6-3 loss to Puerto Rico on March 9, allowing three runs and five hits in three innings. He also walked one batter and hit another.
Bryan Hoch is a reporter for MLB.com. Follow him on Twitter @bryanhoch and read his MLBlog, Bombers Beat. This story was not subject to the approval of Major League Baseball or its clubs.