Updated

The Chicago White Sox are looking forward to some rest and recuperation.

John Mayberry Jr. hit an RBI single with two outs in the 10th inning, lifting Philadelphia over the slumping White Sox 4-3 on Sunday.

Alejandro De Aza homered for Chicago, which enters the All-Star break having lost seven of its past 10 and 31 of 44.

"The record stands for itself," manager Robin Ventura said after White Sox (37-55) dropped 18 games below .500.

"We'll just go home, try to clear our minds and get ready to go in the second half."

The White Sox scored a run in the ninth off Jonathan Papelbon, who blew his fifth save in 25 chances, to send the game to extra innings.

"We kept battling, just couldn't get it done at the end," Ventura said.

Dayan Viciedo hit a one-out single in the ninth and pinch-runner Blake Tekotte stole second. After Jeff Keppinger flied out, Josh Phegley singled up the middle to tie it at 3.

But the White Sox couldn't get a run in the top of the 10th off Antonio Bastardo (3-2) and Mayberry sent the Phillies to their ninth win in their past 13 games.

"It's definitely exciting to pull that one out," Mayberry said. "It definitely gives us momentum and being able to carry momentum into the All-Star break and second half."

Chase Utley led off the 10th with a double and David Purcey (0-1) walked Jimmy Rollins. The runners advanced on Domonic Brown's groundout and Darin Ruf was intentionally walked to load the bases.

Ramon Troncoso relieved and struck out Michael Young. But Mayberry lined Troncoso's first pitch up the middle for the winning run.

All three games in the series went extra innings. The teams played a total of 34 innings over 11 hours, 12 minutes.

The White Sox got a scare in the bottom of the ninth when Phegley left the game with an injured right finger after taking a foul ball off his hand, but X-rays were negative. The catching prospect has been a bright spot of late, with three homers and nine RBIs in his first eight games since being called up July 5.

"It caught me pretty square," Phegley said. "I saw a bump and it didn't look normal. I think I will be OK. We have four days off to take care of it."

Brown, picked for his first All-Star team, drove in a pair of runs and upped his team-leading total to 67 RBIs entering the break to help the Phillies (48-48) reach .500 for the first time since June 7.

"The bottom line is if you don't finish in first place or get in the playoffs, you haven't done anything," manager Charlie Manuel said.

Cole Hamels was poised for his third straight win after a poor start to the season before Papelbon's blown save.

The left-hander has a 1.57 ERA in his past three starts. He allowed two runs and eight hits while striking out seven and walking none in eight innings. The three-time All-Star enters the break with a 4-11 record, but he is encouraged by his performance of late.

"To put the team in situations where we win, that's ultimately the big idea," Hamels said. "(Earlier in the season) I was a little wild and not able to pitch deep in ballgames."

Said Ventura: "Hamels was really tough. You can't look at his record. He had a great change-up and kept us off-balance."

Brown's two-run double in the first off Jose Quintana gave the Phillies a 2-0 lead. Philadelphia added a run in the fourth on Hamels' RBI single, the first of his two hits.

The White Sox scored in the seventh on Keppinger's RBI single.

De Aza hit a solo homer in the eighth.

Quintana allowed three runs and five hits in six innings. It was the ninth straight start without a loss for Quintana, who has just one win during that span.

NOTES: The Phillies have won five of their past six series. ... The Phillies put OF Ben Revere on the 15-day disabled list with a broken right foot and activated C Erik Kratz. Revere, who was injured fouling a ball off his foot on Saturday, will have tests on Monday to determine the extent of his absence. ... White Sox INF Gordon Beckham, who is batting .378 in his past 19 games, didn't play after getting a bruised thigh in the second game of Saturday's doubleheader.