PHILADELPHIA - After Philadelphia closer Jonathan Papelbon blew his first save of the season, Domonic Brown provided him with some encouraging words. Then, Brown gave him a win.

Brown hit an RBI single with two outs in the bottom of the ninth inning and the Phillies beat the Washington Nationals 5-4 on Monday night.

The Nationals tied it at 4 when Chad Tracy hit a solo homer with two outs in the ninth off Papelbon (1-0). It was the first blown save for Papelbon, who had converted his previous 13 chances.

"He's been great for us," Brown said. "I told him we're going to fight for him and we ended up coming up with the win."

Ben Revere led off the Phillies' ninth with a single against Fernando Abad (0-2). Revere ran on Jimmy Rollins' one-out single and easily reached third base.

Abad struck out pinch-hitter Steven Lerud for the second out before Brown fisted the winning hit to center. Papelbon was the first player to greet Brown in celebration as he was rounding first base.

"I was trying to stay as short and quick as I can, especially with a tough lefty like Abad," Brown said after his first career walkoff hit. "It feels great. It's an unbelievable feeling. It's priceless."

Papelbon easily retired the first two batters in the ninth and had Tracy in an 0-2 hole. But Tracy, who pinch-hit in the seventh and stayed in the game, hit his third home run, barely clearing the right field wall just inside the foul pole.

Ryan Howard went 3 for 3 with a homer and two RBIs, and Delmon Young had a two-run double for the Phillies, who returned home after losing seven games on a 10-game road trip.

"We're trying to get some games on the Nats," Brown said. "It feels good to get a win, especially after a long road trip."

Dan Haren continued his recent struggles and remained winless in his last seven starts (0-5, 6.22 ERA) since May 9.