PHILADELPHIA — Jacob deGrom was dominant after getting extra rest this week.

DeGrom tossed a one-hitter, Curtis Granderson and Asdrubal Cabrera homered and the New York Mets beat the Philadelphia Phillies 5-0 on Sunday.

DeGrom (6-4) allowed only a third-inning single to pitcher Zach Eflin and retired 27 of 29 batters. The lanky right-hander struck out seven, walked one and went the distance for the first time in 68 career starts. He hadn't pitched since July 6 because of the All-Star break.

"You go every five days, that's a lot of throwing," he said. "Some time off, resetting helped."

DeGrom became the first Mets pitcher to toss a one-hitter since R.A. Dickey against the Orioles on June 18, 2012.

"He's gotten a little stronger," manager Terry Collins said of deGrom. "You saw better command and his sinker was his best all year. In his last four starts, his velocity has started to creep up."

DeGrom retired the first eight batters before Eflin singled up the middle.

"I knew who got the hit off me," deGrom said with a smile. "After that, you want the shutout. I went out there every inning like it was the first inning. It was a lot of fun."

Eflin (2-3) allowed five hits and three runs in six innings.

"I didn't have my best have my best stuff today, but I was able to battle and limit the damage," Eflin said.

Granderson drove his 16th homer way out to right-centre for a 2-0 lead in the third. Cabrera's two-run shot off Andrew Bailey in the eighth was his 13th homer and gave the Mets a 5-0 lead.

Juan Lagares gave the Mets a 1-0 lead in the second when he lined a triple to right. DeGrom helped himself with a two-out single in the fifth — only his second hit in 27 at-bats this season. Jose Reyes followed with an RBI double to left-centre to make it 3-0.

DeGrom continued his mastery in day games. He is 15-3 with a 1.63 ERA without the bright lights and 14-15 with a 3.19 ERA at night.

"I was hoping I'd have one like this where everything is working," he said.

ROSTER MOVE

The Mets called up OF Michael Conforto and optioned OF Brandon Nimmo to Triple-A Las Vegas. Conforto was demoted on June 25 after hitting .148 after May 1. He found his groove in the minors, batting .344 with nine extra-base hits and 15 RBIs. Nimmo hit .235 with one homer and four RBIs in 16 games.

"I know I have a lot to work on and I can do that in Triple-A," Nimmo said. "I know I can play here. (Being up) gave me confidence I can do it."

STATS

DeGrom is 4-0 vs. the Phillies and the Mets have won all seven of his starts against them. .... The Mets have 16 homers in six games in Philadelphia. ... They're 31-13 in Citizens Bank Park since 2012. ... Phillies 2B Cesar Hernandez is hitless in his last 14 at-bats.

STANDINGS

The defending NL champion Mets (49-42) took two of three and maintain hold of a wild-card spot. The Phillies (43-50) are seven games behind.

TRAINER'S ROOM

Mets: OF Yoenis Cespedes returned to the lineup after sitting out the first two games to rest his strained right quadriceps.

UP NEXT

Mets: LHP Steven Matz (7-5, 3.38 ERA) opens a three-game series at the Cubs. LHP Jon Lester (9-4, 3.01) goes for Chicago.

Phillies: RHP Aaron Nola (5-8, 4.69) starts the opener of a four-game series vs. the Marlins. All-Star RHP Jose Fernandez (11-4, 2.52) pitches for Miami.