Phoenix, AZ (Sports Network) - A.J. Pollock's tie-breaking single capped a two-run rally in the bottom of the eighth inning that lifted the Arizona Diamondbacks to a 3-2 victory over the Washington Nationals in the season finale for both teams at Chase Field.

Martin Prado tied the contest with an RBI single of his own off Ryan Mattheus (0-2) in the eighth and went 2-for-4 to help Arizona avoid a sweep of the three-game set and finish 81-81 for a second consecutive year.

The comeback spoiled the final game for Nationals manager Davey Johnson, who announced last November that he will retire at the conclusion of the 2013 campaign.

David Hernandez (5-6) threw a 1-2-3 top of the eighth to earn the win in relief of Wade Miley, who permitted two runs -- one earned -- over seven innings. Brad Ziegler struck out two in the ninth to nail down his 13th save.

Nationals starter Tanner Roark received a no-decision despite holding the Diamondbacks to one unearned run and three hits over a seven-inning stint.

Steve Lombardozzi went 2-for-4 with an RBI for Washington, which placed second in the NL East with an 86-76 record.