NEW YORK (AP) -- Matt Harvey pitching seven strong innings and hit his first career home run to lead the New York Mets to a 4-2 win over the Arizona Diamondbacks on Saturday.

New York Mets' Matt Harvey, right, celebrates with teammate Eric Campbell after hitting a two-run home run scoring Campbell during the fifth inning (AP Photo/Bill Kostroun)

Lucas Duda homered for the second consecutive game and Ruben Tejada also went deep for the Mets.

After giving up a two-run homer to David Peralta in the first inning, Harvey (8-6) settled into a groove and scattered just four singles over his last six innings. He walked four and struck out nine while throwing 109 pitches.

Jeurys Familia got the last three outs for his 26th save in 28 chances.

It was another solid pitching performance for the Mets, who have allowed just 23 earned runs over their last 142 innings.

Diamondbacks starter Patrick Corbin (1-1), making his second start of the season after Tommy John surgery wiped out his 2014 campaign, allowed all four runs and four hits in five innings. He gave up three homers for the first time in his career.

Corbin was outstanding for four innings, allowing only a single to Michael Cuddyer in the first while striking out five batters. However, he ran into trouble in the fifth.

Duda drove Corbin's 2-0 offering into center field, nearly the same place where he hit his home run on Friday, to open the fifth. Of Duda's 12 home runs, 10 have been solo shots.

After Eric Campbell walked with two outs, Harvey hit hit the first pitch from Corbin into the left-center field stands, pumping his fist as he rounded the bases.

Arizona's Peralta thought a fan interfered with the ball, prompting a crew chief review, but after a delay of 1 minute, 49 seconds, the home run call stood, prompting a standing ovation from the 36,038 in attendance.

Tejada added to the Mets' advantage, leading off the sixth inning with his second home run of the season.

TRAINER'S ROOM:

Mets: 2B Daniel Murphy and OF Curtis Granderson, both left-handed batters, were held out of the lineup in a pre-planned move by manager Terry Collins, with the lefty-throwing Cordbin on the mound. "Curtis Granderson has played, I think, in every single game," Collins said. "He needs a day off and the same with Murph. Murph needs a day off and this guy can be really tough. We've got them if we need them, but we planned going into these three days to try and get some guys some rest." Granderson struck out as a pinch-hitter in the seventh.

Diamondbacks: Manager Chip Hale said that his starting rotation, after the upcoming All-Star break, would be set up to give Chase Anderson as much rest as possible. According to Hale, Robbie Ray would get the start in the team's first game following the break, against San Francisco and would be followed by Jeremy Hellickson, Corbin, Rubby De La Rosa and finally, Anderson.

UP NEXT:

Mets LHP Jonathon Niese (4-8, 3.58 ERA) matches up with Diamondbacks RHP Rubby De La Rosa (6-4, 4.89 ERA) in the first half finale for both teams.

(© 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)