Cabrera's solo home run with one out in the 10th lifted the Phillies to a 2-1 victory over the Chicago Cubs on Friday night in a game played through steady rain.
Cabrera connected off Steve Cishek (4-2), driving an opposite-field shot to left-center to help the Phillies pull within two games of Atlanta in the NL East. The Braves lost 3-2 to Pittsburgh.
"That's why we traded for him," Phillies manager Gabe Kapler said of Cabrera, who came from the New York Mets on July 31. "Big moment. Absolutely demolished the ball."
Cabrera got mobbed by teammates and showered with bubble gum and a sports drink after circling the bases following his fifth career walk-off homer and first since hitting one off teammate Edubray Ramos on Sept. 22, 2016.
"It feels awesome to help the team win," Cabrera said. "This game is not easy."
Javier Baez hit his 29th homer for the NL Central-leading Cubs.
Pat Neshek (2-1) earned the win with a scoreless inning.
Baez hit a liner out to left off Nick Pivetta for his NL-leading 98th RBI to give the Cubs a 1-0 lead in the fifth.
Phillies reliever Adam Morgan escaped a jam in the seventh when Baez hit a hard liner to right with two runners on, but Phillies newcomer Jose Bautista reached out to make the catch and doubled Tommy La Stella off second to end the inning.
Cubs: Quintana gave up one run and three hits, striking out seven in six innings. He has allowed just 13 hits over his last three starts after posting a 7.52 ERA over his previous four.
Phillies: Pivetta allowed one run and five hits, striking out six in five innings.
Quintana had his first two-hit game after entering with four hits in 91 career at-bats.
La Stella led off the seventh with a single, setting the franchise record for pinch-hits in a season with 21.
Hector Neris, who began the season as Philadelphia's closer and was demoted to Triple-A after pitching poorly, has 20 strikeouts and hasn't allowed a run in nine innings since being recalled a few weeks ago.
Cubs lefty Cole Hamels received a standing ovation following a video tribute in the middle of the fourth inning. Hamels was the MVP of the 2008 World Series and NLCS with the Phillies. He was traded to Texas in 2015. Hamels would've pitched on Sunday but was pushed back because Joe Maddon is going with a six-man rotation.
"I thought it was good to let him come back and enjoy his three days," Maddon said. "Knowing him, he's competitive and he probably wanted to pitch but I didn't ask him."
CUBS: Closer Brandon Morrow (right biceps inflammation) threw from 120 feet. ... OF Jason Heyward wasn't in the lineup after injuring his right hamstring Thursday night. ... 3B Kris Bryant (shoulder) and LHP Brian Duensing (shoulder) are expected to rejoin the team after the rosters expand on Saturday.
For more AP baseball coverage: https://apnews.com/tag/MLBbaseball and https://twitter.com/AP-Sports
White Sox, James McCann reach 1-year deal
James McCann, who hit .220 with eight homers and 39 RBIs in 118 games for the Tigers last season, will stay in the AL Central after reaching a one-year deal with the White Sox.
Top spenders Red Sox owe nearly $12 million in luxury tax
The World Series champion Boston Red Sox owe $11.95 million in luxury tax for having baseball's top payroll.
White Sox have limits on Manny Machado, Bryce Harper
After trading for Yonder Alonso, who is Manny Machado's brother-in-law, the White Sox will make a pitch for Machado himself. But it seems they'll only go so far.
Yonder Alonso headed to White Sox in trade with Indians
A day after acquiring Carlos Santana in a three-team deal, the Indians have traded first baseman Yonder Alonso to the White Sox.
Padres agree to deal with free-agent 2B Ian Kinsler
Veteran 2B Ian Kinsler, a four-time All-Star who was traded to the champion Red Sox late in the 2018 season, has agreed to a two-year, $8 million deal with the Padres.
You might be a better hitter than these five pitchers
Our candidates for this year's worst-hitting pitcher are so awful, even you might be able to take the field and outdo them in the batter's box.