David Ortiz hit his 509th home run to put the Boston Red Sox ahead to stay in a 5-2 victory over the Chicago White Sox on Wednesday night.

Ortiz’s two-run shot to right field off Carlos Rodon in the fifth inning tied him with Gary Sheffield for 25th all-time. It was the sixth homer of his farewell season and his 451st with Boston, one off Carl Yastrzemski’s club mark.

Ortiz added an RBI single in the seventh against Zach Duke, and embattled Clay Buchholz (1-3) was sharp over seven innings in Boston’s fourth win in five games.

Jose Abreu’s two-run homer in the first was the only blemish for Buchholz, who allowed three hits and struck out six.

Rodon (1-4) gave up three runs and six hits over six innings as the White Sox failed to win their 20th game and match the crosstown Cubs for most wins in the majors.

Craig Kimbrel pitched a scoreless ninth for his ninth save, after the 40-year-old Ortiz helped Boston break out of its funk against left-handers.

The Red Sox managed four hits off Jose Quintana on Tuesday night, falling to 0-3 against lefty starters. But Xander Bogaerts had three hits Wednesday, including an RBI single off Rodon in the second.

That was enough in Buchholz’s best outing of the season.

He entered with a 6.51 ERA and Boston had lost all five of his starts, prompting manager John Farrell to say the right-hander needed to "attack the strike zone."

Abreu crushed Buchholz’s 92 mph fastball an estimated 402 feet to left in the first inning for his fourth homer despite the wind blowing in on a 45-degree night. Abreu has 10 RBIs during his eight-game hitting streak.

But Buchholz walked only two, and Boston ended Chicago’s three-game winning streak despite first baseman Hanley Ramirez being a late scratch with an illness.

(Copyright (c) 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox