By Helen Charles and the Associated Press

Bryce Harper and Rhys Hoskins homered and the Phillies beat the San Diego Padres 4-2 to stay 4 games behind the Mets in NL East with a 39-41 record.

Zach Eflin (3-6) allowed two runs and three hits in six innings, and the bullpen that had blown 22 of 40 save chances coming in held the lead for a change. Bailey Falter, Archie Bradley and Ranger Suárez combined for three innings of one-hit, scoreless relief. Suárez earned his first professional save with a perfect ninth.

“He just pounded the zone like he knows how,” Harper said. “Very impressive.”

“If we can get a sweep against them, what a great weekend it will be,” Harper said.

Manny Machado hit his 13th homer, a two-run drive. The Padres have lost three straight after winning 11 of 12.

“Tonight we probably didn’t deserve to win,” San Diego manager Jayce Tingler said. “We didn’t do enough in all of the categories.”

The start was delayed 2 hours, 1 minute due to rain, and the game was stopped by rain for 45 minutes with two outs in the bottom of the fourth.

Philly went ahead 3-2 in the sixth on Harper’s one-out sacrifice fly to deep right off Yu Darvish (7-3) after J.T. Realmuto tripled off the wall in right.

Hoskins added a two-out RBI double to left. Hoskins’ at-bat was extended when first baseman Eric Hosmer lost his foul ball behind the first-base bag in the lights.

A night earlier, the Phillies wasted a 3-0 lead in the ninth, their eighth blown save in nine games, before Brad Miller’s winning double. Suárez replaced José Alvarado in the ninth and surrendered Jurickson Profar’s tying, two-run double.

This time, Fernando Tatis Jr. flied out to deep center, Jake Cronenworth struck out and Machado fouled out to third.

“He hits his spots,” manager Joe Girardi said. “I thought it was best to bring Ranger in.”

Suarez, who has been used in varying roles, relished the opportunity to close and said he’d welcome another chance if that’s what the team needs.

“I’ll be ready whenever they call my name,” he said through an interpreter.

Machado’s line drive over the wall in center put the Padres ahead in the first.

Harper golfed the first pitch he saw from Darvish in the second inning, a 93 mph fastball, off the scoreboard hanging from the second deck. The 113.5 mph drive was the hardest-hit home run off Darvish since Statcast tracking started in 2015.

Two batters later, Hoskins drove his first pitch, another 93 mph fastball, over the wall in left.

Darvish gave up four runs and six hits in six innings with eight strikeouts and a walk.