ARLINGTON, Texas - CC Sabathia did nothing to alleviate the Yankees' concerns about their rotation.

And though the Yankees hit three home runs, two by Mark Teixeira and one by Brian McCann, a rare hiccup by the bullpen led to a 7-6 loss to the Rangers Thursday night in front of 34,407 at Globe Life Park.

Josh Hamilton delivered his second hit of the game, a two-out RBI single off Andrew Miller in the ninth inning, to give Texas the walk-off victory. Hamilton drove in four runs.

The AL East-leading Yankees (57-44), who still have a six-game lead over the Orioles and Blue Jays, fell to 4-3 on this 10-game trip, which continues Friday night against the White Sox.

Nick Goody, who made his major-league debut in the eighth and struck out a batter, walked Delino DeShields to start the ninth. Joe Girardi brought in Miller to face Elvis Andrus, who sent a towering drive to center that Jacoby Ellsbury tracked down as he crashed into the wall. Leonys Martin then stung one that might have gone into the rightfield corner and driven in DeShields, but the ball hit the runner for the second out.

Miller walked Adrian Beltre, bringing up Hamilton, who hit a three-run homer in the first off Sabathia to tie it at 3-3. Hamilton got ahead 2-and-0 before lining a single to right to end it.

Sabathia, taking his rotation turn a day earlier than planned as Michael Pineda was scratched and placed on the disabled list with a forearm strain, allowed five runs and nine hits in five innings-plus. He was unable to hold on to 3-0 and 5-4 leads, and Justin Wilson and Dellin Betances combined to give up a 6-5 lead.

The Yankees said Sabathia was sent to the hospital after the game because of "symptoms of dehydration.''

Brett Gardner lifted a sacrifice fly, Teixeira hit a two-out homer to centerfield and Chase Headley added an RBI single in the top of the first, but Hamilton tied it at 3-3 with two outs in the bottom of the inning.

Shin Soo-Choo homered in the second, but McCann hit a two-run homer in the third to give the Yankees a 5-4 lead.

In the fourth, the Rangers' Ryan Rua lined a shot to centerfield, and when Ellsbury tried to make a diving catch, the ball got by him for a tying inside-the-park home run. Teixeira, who has 26 homers, hit his second of the night to give the Yankees a 6-5 lead in the seventh.