The Phillies' prospects didn't look so bright. Having been in a serious offensive drought, they entered the ninth inning of Sunday's series finale with the Cincinnati Reds trailing by 2-1.

And they had to face reliever Aroldis Chapman, a pitcher they were 3 for 21 against with zero runs scored, all-time.

Manager Charlie Manuel contemplated pinch-hitting for Freddy Galvis, the man who hit a home run to win it.

None of it made much sense.

A team that had scored one run in its previous 17 innings blasted consecutive home runs by Erik Kratz and Galvis off the flame-throwing Chapman in the ninth to stun the Reds, 3-2, at Citizens Bank Park.

The Phillies (21-23) took two of three games from a Reds team that entered town Friday on a six-game winning streak.

"Today's game was definitely a pick-me-up and gives us a nice little ride to Florida," Manuel said.

The Phillies begin a three-game series in Miami on Monday but will be without Carlos Ruiz at least in the beginning and possibly for much longer.

Ruiz suffered a right hamstring strain going from first to third on a Galvis single in the second inning. He pulled up a few feet from the bag, stayed in the game after being attended to, and departed after the inning.

Ruiz will have an MRI exam on Monday. So will first baseman Ryan Howard, who sat out with a sore left knee.

Despite the injuries, the Phillies kept grinding.

They had gone 16 straight innings without scoring a run until Chase Utley cut the Reds lead to 2-1 with an RBI single in the eighth.

That set the stage for a wild ninth.

Chapman walked pinch-hitter Delmon Young on four pitches. Pinch-runner Cliff Lee, who pitched well enough to win on Friday but received no decision, ran poorly enough to lose this one.

With Kratz at the plate, Lee was picked off first base for the first out. At that point, there was no place to hide.

"That is unacceptable, regardless of what happened," Lee said. "I guess I got a little too comfortable and felt like I could tell when he was going to the plate, but he got me."

Kratz picked up his teammate by blasting a 3-2 fastball to left to tie the score.

"It was an at-bat where I laid off some pitches out of the zone," Kratz said.

He crushed one in the zone, a 98-m.p.h. four-seam fastball.

"At 3-2, he came at me and I was able to barrel it up and not try to do too much," Kratz said.

Galvis capped the improbable afternoon by hitting a 95-m.p.h. fastball that landed just inside the left-field foul pole.

"Chapman throws a great fastball and that is what I was looking for," Galvis said.

He said it was the first walk-off home run he has hit in his career, at any level.

"It's awesome," Galvis said. "This is the first time in my life I did this and I will never forget it."

Manuel said that if Kratz hadn't tied the score, he was contemplating pinch-hitting John Mayberry Jr. for Galvis.

This falls in the category of best moves never made.

Lost in all the dramatics was another stellar performance from rookie Jonathan Pettibone, who allowed two runs (one earned) on seven hits over a career-high seven innings. He yielded a solo home run in the second to Jay Bruce, who is 10 for 23 with two home runs and seven RBIs this season against the Phillies.

In the sixth, Domonic Brown made a sliding catch in foul territory of Bruce's fly ball, but then overthrew first base in attempting to double Joey Votto off the bag.

Votto advanced to second and then scored the Reds' second run on a Todd Frazier's two-out double to right.

With the way the Phillies were going, that looked to be more than enough for the Reds, until the game took a dramatic turn in the ninth. That sent the Phillies off on their eight-game road trip in a pretty good mood.