J.D. Davis lined an R.B.I. single with two outs in the 10th inning to cap a two-run rally on Wednesday, giving the Mets a 4-3 victory over the Cleveland Indians.

A huge mental lapse by the All-Star reliever Brad Hand may have cost Cleveland the game when he failed to cover first base on a potential game-ending double-play grounder. Two batters later, Davis made the Indians pay with his first career game-ending hit.

The Mets won their fourth in a row and for the 20th time in 25 games, moving a season-high six games over .500. It was their 12th win in the last 13 at Citi Field, and they have more home games down the stretch than any other team.

Chasing the second National League wild-card spot, the Mets remained two games behind the Chicago Cubs, who beat San Francisco, 12-11. Philadelphia, which beat Boston, 5-2, is also two behind Chicago.