CHICAGO (AP) — Anthony Rizzo hit a go-ahead grand slam and the Chicago Cubs overcame an early home run by Manny Machado to beat the San Diego Padres 6-5 Friday.

Javier Báez also homered for the NL Central-leading Cubs, who have won six of seven since the All-Star break.

Josh Naylor tied the score 5-5 in the eighth inning against Pedro Strop (2-3) with his first career pinch homer, but the Cubs went back ahead in the bottom half.

Chicago Cubs starting pitcher Jon Lester (34) throws the ball against the San Diego Padres during the first inning of a baseball game, Friday, July,19, 2019, in Chicago. (AP Photo/David Banks)

Anthony Rizzo singled off Craig Stammen (6-5), rookie shortstop Fernandez Tatis Jr. threw Addison Russell’s grounder into center field for an error, Jason Heyward was intentionally walked and David Bote hit a grounder to third. Machado threw home for a forceout and catcher Francisco Mejia threw to first, even though he didn’t have a play on Bote. The ball hit off the glove of first baseman Eric Hosmer and bounced into short right field as Rizzo scored on Hosmer’s error.

Craig Kimbrel struck out three around a four-pitch walk in the ninth for his fourth save in five chances. San Diego has lost five of six and 11 of 15.

Jon Lester made his 400th big league appearance and matched his career high by allowing 12 hits, giving up four runs in six innings. Lester needed 26 pitches to get through the first on a muggy afternoon with a 93-degree temperature at game time.

Eric Lauer gave up four runs, five hits and three walks in 4 2/3 innings in his first appearance since July 5. Lauer had gone on bereavement leave following the death of his father. He remained in the game after he was hit on the back by Albert Almora Jr.’s single in the third.

Hunter Renfroe hit a sacrifice fly in the first and Machado made it 3-0 in the third with his 24th homer, a two-run drive.

Rizzo’s fourth career slam put Chicago ahead in the bottom half.

Francisco Mejía tied the score with an RBI double in the fifth, and Báez hit an opposite-field homer to right-center in the bottom half.

HELP WANTED

Chcago figures to be in the market for a left-handed reliever before the trade deadline. The return of Carl Edwards Jr. (strained left thoracic) from the IL left seven righties among eight relievers. LHP Randy Rosario was optioned to Triple-A Iowa. “It’s always nice to have more than one,” manager Joe Maddon said.

TRAINER’S ROOM

Padres: Manager Andy Green was optimistic RHP Garrett Richards (Tommy John surgery last July) will be available in late August. “He’s on a relatively quick path, all things considered,” Green said. “I think we’re all excited about that possibility.”

Cubs: LHP Cole Hamels (strained left oblique) took part in light throwing and was scheduled for another bullpen session this weekend. … C Willson Contreras (sprained right arch) remained on pace to return from the IL when eligible Wednesday.

© 2019 by STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.