MIAMI (AP) -- Martin Prado hit a sacrifice fly in the bottom of the ninth inning to give the Miami Marlins a 4-3 victory over the New York Mets on Sunday.

New York's lead in the NL East was shaved to four games over the Nationals heading into a pivotal three-game series between the teams beginning Monday afternoon in Washington.

The Nationals beat Atlanta 8-4 on Sunday to finish a four-game sweep. Meanwhile, the Mets dropped two of three in Miami -- with both losses coming on game-ending swings by Prado.

More from FoxSports

He also hit a walk-off double in Friday's 6-5 win in 11 innings as part of a five-hit night.

Pinch-hitter Justin Bour delivered a tying homer for the Marlins with two outs in the eighth off Tyler Clippard (2-1).