NEW YORK — Martin Prado singled with the bases loaded and two outs in the ninth inning Friday, lifting the Yankees to a 4-3 walkoff victory against the visiting White Sox.

Prado singled against right-hander Daniel Webb after Webb walked two — one intentionally — to fill the bases.

The Sox scored three in the first on Jose Abreu’s 33rd homer following singles by Alejandro De Aza and Carlos Sanchez. Abreu has 93 RBIs.

Sanchez, recalled from AAA Charlotte to take over second base duties for the Sox after Gordon Beckham was traded to the Los Angeles Angels Thursday, singled his first three times up and lined out to center.

Lefty John Danks pitched five-plus innings for the Sox, allowing three runs on six hits, including a two-run homer by Prado in the third inning. Jacoby Ellsbury doubled in the Yankees third run in the fifth.

The Sox (59-69), who lost their fourth straight and 11th in the last 15 games, fell to a season-low 10 games below .500.