NEW YORK -- Robbie Ray returned to a big league mound for the first time since being hit in the head with a line drive last month, striking out nine in five innings and the Arizona Diamondbacks beat the New York Mets 3-2 on Thursday.
Arizona won three of four in New York, staying ahead of Colorado for the NL's top wild-card spot with the victory.
Ray was hit on the head by a 108 mph line drive off the bat of the Cardinals' Luke Voit on July 28. He suffered a concussion.
Reinstated from the DL prior to the game, Ray (10-5) allowed one run and two hits. The All-Star left-hander struck out the side in the first and held the Mets hitless for three innings. He is 2-0 with a 0.82 ERA in four starts against the Mets.
Yoenis Cespedes led off the fourth with his 17th home run, a drive that traveled 440 feet into the second deck in left.
Fernando Rodney stranded two runners in the ninth for his 30th save and third in this series.
Rafael Montero (2-9) allowed three runs in 5 1/3 innings.
A defensive lapse cost New York with one out in the fifth inning, as Ray put down a sacrifice bunt attempt toward the left side. Third baseman Wilmer Flores failed to charge the ball and by the time he threw across the diamond the pitcher was safe, loading the bases after a video review overturned an initial out call.
Gregor Blanco and Ketel Marte followed with an RBI single and sacrifice fly, giving the Diamondbacks a 2-1 lead.
Brandon Drury singled to right in the sixth, chasing Montero with a soft flare that scored Paul Goldschmidt for Arizona's third run.
The Mets cut it to 3-2 on Brandon Nimmo's RBI groundout in the seventh.
Mets right fielder Michael Conforto dislocated his left shoulder while swinging at a pitch in the fifth inning. With two outs and runners on first and second, Conforto swung through a 95 mph fastball and fell to the ground. Writhing in pain and grabbing at his shoulder, the All-Star slugger stayed down for about 40 seconds before being helped to his feet by manager Terry Collins, trainer Ray Ramirez and a member of the coaching staff.
Diamondbacks: Nick Ahmed (broken right hand) will play shortstop with the rookie-level team on Thursday. The club plans to send Ahmed to Triple-A to continue his rehab if he feels good after the game. … RHP Randall Delgado (right elbow inflammation) will throw a 25-pitch bullpen session on Friday. … C Jeff Mathis (broken right hand) is scheduled to see an orthopedic hand specialist soon. Manager Torey Lovullo remains optimistic that the veteran backstop could rejoin the team at some point this year.
Mets: RHP Jeurys Familia (blood clot in right arm) is with the team and is expected to be activated before Friday's game at Washington. … RHP Noah Syndergaard (torn lat muscle) will leave for Port St. Lucie to continue his throwing program, which includes live BP. … RHP Seth Lugo (right shoulder impingement) will throw a bullpen session on Friday and may start on Sunday against the Nationals. … 3B David Wright (cervical disc herniation) was scheduled to participate in baseball activities in Port St. Lucie on Thursday. … RHP Zack Wheeler (stress reaction in right arm) has been shut down for the season. … IF T.J. Rivera (partial tear in right elbow) continues to rehab his arm at the team's spring training complex. … RHP Tyler Pill underwent arthroscopic elbow debridement surgery on Wednesday.
Diamondbacks: RHP Zack Greinke (14-6, 3.16 ERA) is scheduled to start as Arizona hosts the last-place Giants.