CHICAGO (AP) Just getting a win against any team, anywhere, felt good for the scuffling Chicago White Sox.

That it came at Wrigley Field against the Cubs made it a little sweeter.

Adam Engel and Matt Davidson homered and the White Sox snapped a nine-game losing streak with a 3-1 victory over their crosstown rivals in their North Side ballpark on Monday.

''I was emotional just because we've been down eight days in a row,'' White Sox manager Rick Renteria said. ''We've been looking for a victory and looking for our (starter) to give us a little length and he did.''

Miguel Gonzalez (5-9) allowed one run and seven hits in 7 1/3 innings to end a four-game losing streak and win for just the second time in 11 decisions.

Engel lined his third homer of the season off reliever Justin Grimm (1-1) into the wind and several rows into the left-center bleachers to snap a 1-all tie in the sixth. Davidson led off the eighth with his 19th homer, which sailed over the left-field stands and onto Waveland Avenue.

''It felt good just to put us ahead,'' Engel said.

Jose Abreu had two hits and doubled in a run for the AL-worst White Sox, who ended their longest slide in four years.

The Cubs lost for just the second time in 10 games following the All-Star break to fall a half-game behind idle first-place Milwaukee in the NL Central. Monday's game was the first of four consecutive this week between the Cubs and White Sox.

In his first start since June 4 because of tendinitis in his pitching hand, Cubs right-hander Kyle Hendricks pitched 4 1/3 innings and allowed a run and eight hits.

The 27-year-old was 16-8 with a major league-best 2.13 ERA last season and his return is one key to the defending World Series champions' rotation down the stretch.

Hendricks struck out five and walked none, but White Sox hitters battled to extend at-bats and drove up the righty's pitch count. Hendricks was replaced by Grimm with one out in the fifth after throwing his 92nd pitch - one that resulted in Abreu's RBI double that tied it at 1.

Hendricks said he felt fine physically, but was out of sync.

''It was good being back out,'' Hendricks said, ''but if really didn't go the way I wanted it too. I've just got to get back that fastball command, be more aggressive with less pitch count.''

Cubs manager Joe Maddon agreed Hendricks wasn't his old self yet, but said the righty took a solid step.

''He threw like 90 pitches, which was good to get him stretched out into the next start,'' Maddon said. ''It's a good outing to build off of.''

White Sox reliever Anthony Swarzak got four outs for his first career save in eight chances. After Kris Bryant's infield single and a walk to Anthony Rizzo with two outs in the ninth, he struck out Willson Contreras looking.

''It took a long time, and it's nice that I went in there and got it done,'' Swarzak said.

Jon Jay had four hits, including a double, for the Cubs, but they left 12 men on base. Maddon credited Gonzalez for his craftiness.

''We just couldn't get a hit with runners in scoring position,'' Maddon said.

Gonzalez's start was his second after missing nearly a month with right shoulder inflammation. He lost to Clayton Kershaw and the Los Angeles Dodgers last Tuesday despite allowing only one run in six innings.

The White Sox led 2-1 when Cubs loaded the bases against Gonzalez with two outs in the seventh. But Rizzo lined out to Engel on the warning track in center.

THE ROAD BACK

Hendricks made two rehab starts with Double-A Tennessee of the Southern League, allowing one run and two hits in 8 1/3 total innings. In his first start, Hendricks threw 45 pitches (27 strikes) over 3 1/3 innings. In his second, a week ago, the righty went five innings and 63 pitches (43 strikes).

ROSTER MOVE

To make room for Hendricks, the Cubs optioned RHP Felix Pena to Triple-A Iowa. Pe�a is 1-0 with a 4.50 ERA in 10 relief outings with Chicago.

TRAINER'S ROOM

White Sox: GM Rick Hahn said minor league RHP Zack Burdi will undergo Tommy John surgery this week. Burdi last pitched July 10 for Triple-A Charlotte.

UP NEXT

White Sox: LHP Carlos Rodon (1-3, 5.75) makes his fifth start since returning from left biceps bursitis. The Cubs counter with righty John Lackey (6-9, 5.04) in the second game of the series, another matinee at Wrigley Field. Games 3 and 4 are at Guaranteed Rate Field and start at 7:10 p.m. local time.

Copyright 2017 by STATS. Any commercial use or distribution without the express written consent of STATS is strictly prohibited.