NEW YORK (AP) -- All-Star slugger Mark Teixeira homered twice after Scott Kazmir left his start with triceps tightness, and CC Sabathia won for the first time in a month when the New York Yankees held off the Oakland Athletics 5-4 Wednesday night.

Mark Teixeira of the New York Yankees is congratulated by third base coach Joe Espada after he hit a home run at Yankee Stadium in the Bronx. (Rich Schultz, Getty Images)

Stephen Drew, who entered as a late-game defensive replacement in a 1-for-24 slump, homered off Fernando Abad in the eighth to give New York a 5-2 lead. Andrew Miller, just off the disabled list, nearly gave it all back in his first appearance since June 9, allowing a two-run shot in the ninth to Marcus Semien.

Stephen Vogt reached second on third baseman Gregorio Petit's two-out throwing error. But Petit charged Ben Zobrist's soft grounder and made a quick throw to first for the final out, with Teixeira making a tough stretch. That gave Miller his 18th save in 18 chances.

(Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)