Hedges had four hits, including a tiebreaking homer in the seventh, on his 27th birthday, and Joey Lucchesi pitched six strong innings to lead the San Diego Padres to a 3-2 victory over the Philadelphia Phillies on Sunday.
"Go 4-for-4 and catch a winning ballgame, that's as good as it gets," Padres manager Andy Green said. "It's a day he won't forget. It was awesome for us, led us to a win."
Hedges' other three hits were singles.
"I've been working on a lot of things, and it's nice to go out and execute them," Hedges said.
Hedges belted an 0-2, 78-mph curveball from Jared Hughes (3-5) over the wall in left with one out in the seventh to put San Diego up a run.
"I felt like I picked it up out of the hand and I put a good swing on it," he said.
Luis Urias also went deep for the Padres, who had lost seven consecutive rubber games before taking two of three in Philadelphia.
"It's a great feeling, man," Lucchesi said of the series win.
Phillies outfielder Bryce Harper left after the fifth inning because of dehydration. Harper had blurred vision, received an IV and was much improved after the game.
"I feel better now," he said. "It's weird. An hour ago, I couldn't see in front of me kinda."
On a hot, muggy afternoon with a gametime temperature of 90 degrees, Harper was lifted prior to taking the field in the sixth. Harper, who signed a 13-year, $330 million contract in the offseason, has played in 123 of 124 games this season.
Harper singled in the fourth inning, pulling up abruptly after rounding first base while considering trying for a double. He later slid hard into second base while breaking up a potential double play.
Harper also made a strong throw in the top of the fourth, nailing Hedges at second base as he tried to stretch a single into a double.
Lucchesi (8-7) gave up two runs on three hits with four strikeouts and two walks, halting his second-half struggles. Lucchesi entered 0-3 with a 6.15 ERA in six starts since the All-Star break, and San Diego had lost all six of those games. But he kept the Phillies off-balance with a fastball that tops out in the low 90's and a slow, sinking changeup.
"I felt like I got in a rhythm, getting the ball and going," he said.
Jean Segura had a pair of RBI doubles for the Phillies, who lost their second straight after tying their season high with four consecutive wins. Philadelphia entered Sunday a game behind the Cubs for the NL's second wild-card berth.
"We weren't able to consistently get the barrel on the ball," Phillies manager Gabe Kapler said.
Kirby Yates struck out the side in a perfect ninth for his NL-leading 35th save in his 38th chance.
The Phillies had tied it in the sixth on Segura's two-out double to left-center that scored Adam Haseley, who walked after replacing Harper in the batting order.
Jason Vargas, in his fourth start since being acquired from the Mets, allowed two runs on six hits with four strikeouts and two walks in 5 2/3 innings. The 36-year-old Vargas has a 3.91 ERA with Philadelphia.
Philadelphia went ahead in the first on the first of Segura's two-out RBI doubles, this one scoring Harper.
San Diego took the lead with a pair of runs in the fourth on Urias' opposite-field shot to right field. It was the second home run of the season and fourth in 143 career at-bats for Urias.
Rhys Hoskins nearly tied it in the eighth, but his drive to deep center was caught at the wall by Manuel Margot. Hoskins went 0-for-4 and has one hit in his last 24 at-bats. The slugger has gone 14 games without a homer.
"Rhys had great at-bats today even though the results aren't there," Kapler said. "I know this is going to turn around for him."
Eric Hosmer doubled in the sixth inning and has hit safely in seven consecutive games. He is batting .448 with four doubles and a homer over that stretch.
Padres: Josh Naylor called out the trainer during his at-bat in the eighth inning and appeared to be flexing his right side after swinging through a 1-1 pitch. After popping out to short, Naylor was replaced in left field by Travis Jankowski. Green downplayed any potential injury after the game.
Padres: San Diego opens a three-game set at Cincinnati on Monday night with LHP Eric Lauer (6-8, 4.55 ERA) opposing Reds RHP Trevor Bauer (10-9, 4.12).
Phillies: After an off day on Monday, the Phillies begin a two-game series at Boston on Tuesday with ace RHP Aaron Nola (11-3, 3.56) on the mound for Philadelphia. The Red Sox haven't announced their starter.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Harper singles in 4th, leaves with dehydration in 5th
Bryce Harper gets a single in the fourth inning and has to come out of the game in the fifth due to dehydration.