LOS ANGELES -- It took five hours and 34 minutes for the Washington Nationals to capture a series at Dodger Stadium for the first time in nine years.

Second baseman Asdrubal Cabrera's two-run home run highlighted a three-run spark in the 14th inning, and the Nationals claimed an 8-5 victory over the Los Angeles Dodgers on Wednesday.

Shortstop Ian Desmond scored on first baseman Adam LaRoche's groundout in the 14th, helping the Nationals capture two of three from the Dodgers in a series featuring clubs with the National League's best records.

Washington also won the season series from Los Angeles for the first time since 2005, winning four of its six meetings.

"We'd answer, they'd answer, we'd answer, they'd answer, but obviously it's good to come out on top in this series," said left fielder Bryce Harper, who went 3-for-6 with a run scored. "To do what (LaRoche) did was pretty impressive. He definitely 'cowboyed-up' right there and came through huge for us."

LaRoche, sidelined since Monday because of tightness in his lower back, went 2-for-3 with a season-high five RBIs. He entered the game as a pinch hitter in the ninth inning and drilled a 2-and-1 pitch off Dodgers closer Kenley Jansen into the seats in left to tie the score 2-2 after Harper led off the inning with a single.