DENVER -- Drew Stubbs hit a three-run, walk-off homer Sunday to give the Colorado Rockies an improbable 10-9 win over the Cincinnati Reds in the first game of a split doubleheader.

The Rockies were 0-26 when trailing after eight complete innings at home and 2-64 in those situations overall before Stubbs connected with two outs against J.J. Hoover (1-9), who took over after closer Aroldis Chapman walked the four batters he faced in the ninth.

The walk-off homer was the third of Stubbs' career and his first with the Rockies.

"He threw me two (curveballs) in a row, and that one, he kind of left over the middle of the plate," Stubbs said. "Didn't really surprise me because I faced him the other night and he threw me a first-pitch fastball and three (curveballs) in a row."

Stubbs played for the Reds from 2009-12 before joining the Cleveland Indians last year and then the Rockies this year.

"They're the team that drafted me and brought me to the big leagues, so I got a lot of friends over there, a lot of people I have good relationships with," Stubbs said. "But at the same time, it's always nice when a team trades you to get a little retribution."

Right fielder Jay Bruce went 3-for-5 with a home run and three RBIs for the Reds. Shortstop Zack Cosart drove in two runs, and third baseman Kris Negron homered. Center fielder Billy Hamilton and first baseman Brayan Pena added two hits apiece for Cincinnati.

Colorado third baseman Nolan Arenado went 4-for-4 with a ninth-inning walk and an RBI. It was his first four-hit game of the season, and the hit total tied his career high.

Stubbs finished 3-for-6, and Colorado left fielder Corey Dickerson hit an RBI double and a solo homer.

Reds starter Mat Latos and Jordan Lyles, his Rockies counterpart, each went five innings. Latos settled down after giving up three runs in the first two innings, while Lyles found trouble as the game went on. Lyles wound up allowing five runs on five hits.

Franklin Morales, who relieved Lyles, was shaky in the sixth. The Reds packed seven runs into the fourth, fifth and sixth and added two runs against Rex Brothers (4-5) in the ninth.

After Chapman walked four batters in the ninth to make it 9-6, Hoover gave up a sacrifice fly to pinch hitter Wilin Rosario. Right fielder Charlie Blackmon lined to right, but center fielder Stubbs followed with his 12th homer of the season, driving Hoover's 1-0 curveball to left-center.

The Rockies jumped in front 3-0 with two runs in the first inning a solo homer from Blackmon in the second.

The Reds bounced back to score the next seven runs, with homers from Bruce and Negron.

"We made it a little tougher on ourselves than we wanted, but it all worked out in the end," Rockies manager Walt Weiss said. "Guys have been fighting all along. It was nice to pull that one out today."

NOTES: There was a 21-minute rain delay in the bottom of the first inning. ... The Rockies retired former 1B Todd Helton's No. 17 before the game. He played his entire 17-year career with the Rockies and is the first player in the 23-year-history of the franchise to have his number retired. ... Colorado LF Corey Dickerson doubled in the first inning, extending his career-high hitting streak to 11 games. ... Rockies 1B Justin Morneau, who was scratched from the lineup Saturday due to a stiff neck, was still sore and did not play in the first game of the doubleheader. ... Reds 2B Brandon Phillips (torn ligaments in left thumb) moved his rehab assignment to Class A Dayton, and he went 2-for-3 with a double Sunday. ... In the nightcap, RHP Dylan Axelrod was due to make his Reds debut. His contract was purchased from Triple-A Louisville on Saturday, when he was due to pitch before the game was postponed due to a water-main break outside Coors Field. LHP Yohan Flande (0-5) was set to start for Colorado.