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
Japan beats MLB All-Stars 4-1 in final of exhibition series
Sosuke Genda drove in three runs with a bases-clearing triple as Japan beat the MLB All-Stars 4-1 in the final of their six-game exhibition series on Thursday.
Christian Yelich turned out to be a perfect fit in Milwaukee
The ex-Marlins outfielder's first year in Milwaukee couldn't have gone much better, from his MVP-caliber season to his warm embrace by Midwest fans.
DeGrom says ERA should be main Cy Young decision factor
Jacob deGrom reacts to only having 10 wins this season but still being named the NL Cy Young award winner.
Chris Woodward's Rangers staff includes addition of Luis Ortiz as hitting coach
New Rangers manager Chris Woodward's staff will include three returning coaches and add Luis Ortiz as hitting coach.
Blake Snell: Cy Young means the world
Rays pitcher Blake Snell talks about being in the same conversation with Justin Verlander, Corey Kluber and Chris Sale.
Mets' Jacob deGrom rides majors-best 1.70 ERA to NL Cy Young Award
Mets right-hander Jacob deGrom, who led the majors with a 1.70 ERA, won the National League Cy Young Award on Wednesday night.