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
Giancarlo Stanton returns from quad injury as Yankees' DH for Game 5
Giancarlo Stanton, who has been out since Game 1 of the ALCS with a quad injury, will return to the Yankees' lineup as the designated hitter for Game 5 on Friday.
CC Sabathia's career done as Yankees add Ben Heller to ALCS roster
CC Sabathia was removed from the Yankees' ALCS roster, meaning his career in pinstripes is over. He was replaced on the roster by right-hander Ben Heller.
Braves' Freeman has arthroscopic elbow surgery
Braves 1B Freddie Freeman is expected to be back for the start of spring training after arthroscopic elbow surgery on Wednesday.
Bryce Harper: No jealousy to see Nationals in World Series
Don't expect Bryce Harper to be envious about his former team, the Nationals, reaching the World Series. "I'm so happy for them," he told The Athletic.
How the new dead ball is faking out players, fans and even cameramen
On the field and in the stands, how players and others react to MLB's newly juiceless baseballs off the bat tells a story.
Justin Verlander looks to close out New York Yankees in ALCS
Justin Verlander is one of the best close-out pitchers of all time, but he stumbled in his last opportunity. That can't happen again, right?