CHICAGO — Brendan Ryan scored on a wild pitch before John Ryan Murphy capped a two-run 13th inning with an RBI single, and the New York Yankees beat the Cubs 4-2 Wednesday after Chicago wasted another dominant start by Jeff Samardzija.
New York scored two in the ninth against Hector Rondon to wipe out a 2-0 deficit. Samardzija pitched four-hit ball over seven innings.
Ryan started the winning rally with a leadoff single against Jose Veras (0-1). Yangervis Solarte walked, and the runners moved up on a sacrifice bunt by Preston Claiborne (2-0) toward third.
Ryan came home when Veras threw a pitch over Murphy's head, and Murphy drove in Solarte with a single to right to make it 4-2. The Yankees had runners on second and third with two out when Derek Jeter grounded out to end the rally.
Claiborne got the win, pitching 1 2-3 scoreless innings, and David Robertson worked the 13th for his ninth save in nine chances.
He gave up a one-out single to Welington Castillo but retired Nate Schierholtz on a fly and struck out John Baker to end the game after 4 hours, 39 minutes.
Samardzija's winless streak was stretched to 16 starts despite lowering his major league-leading ERA from 1.62 to 1.46.
It looked as if it was coming to an end with Chicago up two going into the ninth, but his streak continued, thanks to a shaky Rondon and a throwing error by second baseman Darwin Barney.
A leadoff single by Mark Teixeira, walk to Brian McCann and another single to Solarte loaded the bases with none out.
The Yankees tied it when Ichiro Suzuki sent a grounder to shortstop Starlin Castro, who flipped to Barney at second as the first run scored. The relay throw to first sailed wide, and that allowed Ryan, running for McCann, to come home.
For Samardzija, the bad luck continued. He's 0-4 in 10 starts this year and 0-6 in in 16 outings since he beat San Diego on Aug. 24.
The Cubs took a 1-0 lead in the fourth on Mike Olt's bases-loaded sacrifice fly against Chase Whitley and added another run against Adam Warren in the seventh.
Ryan Kalish, batting for Samardzija, tripled and scored on a bunt by Emilio Bonifacio to make it 2-0.
Brian Schlittler worked the eighth for Chicago, but Rondon blew the save in the ninth after converting his first five chances.
Whitley was solid in his second start since being called up from Triple-A Scranton/Wilkes-Barre. He gave up a run and six hits in 4 1-3 innings.
NOTES: Yankees reliever Shawn Kelley had a setback in his recovery from a back injury. Manager Joe Girardi said the right-hander woke up feeling stiff Tuesday after playing catch at Yankee Stadium the previous day. The Yankees hoped to have him pitch Saturday in a rehab game, but that won't happen. Girardi said MRIs showed no disk problems. ... The Yankees will be staying in Chicago, with a four-game series against the White Sox starting on Thursday. ... Cubs RHP Jason Hammel expects to make his next start despite a deep bone bruise in his pitching hand. Hammel took a hard one-hopper to his hand while deflecting Brett Gardner's single to start Wednesday's game but pitched into the sixth to pick up the win. X-rays showed no structural damage. He is scheduled to start Sunday at San Diego.