CHICAGO - The Los Angeles Dodgers were looking ahead to a matchup with the division-rival Giants when they pushed Dan Haren back a day.

The bullpen came through on Sunday against the last-place Cubs.

Matt Kemp homered and had four RBIs, Yasiel Puig scored a career-high four times and the NL West-leading Dodgers used six pitchers to beat Chicago 8-5.

"It's a good feeling in this clubhouse right now finishing up with Chicago because it's a scrappy team and they gave us all we could handle for four games," said Jamey Wright, who made a spot start. "They fought and those are scary teams to play this time of year, teams playing spoiler."

Wright made his first start since Sept. 1, 2013, with the Rays, allowing a run and three hits in two innings. He said he hoped to last five or six innings, but the Dodgers told him he was done after throwing 46 pitches.

"Anytime you come out with a 'W' on a bullpen day that's a great day," Wright said.

Kemp had four hits for the Los Angeles, which clinched a playoff berth on Friday and have a 4 1-2 game lead over the Giants heading into a three-game series at Dodgers Stadium that begins Monday.

Chris Perez (1-3) struck out two in 1 1-3 innings for his first victory since Aug. 14, 2013. And Kenley Jansen earned his 43rd save in 48 chances.

Welington Castillo homered for the last-place Cubs, who pulled within a run in the fifth. The Dodgers had 16 hits, and the teams combined for 59 runs during the four-game series.

"I thought we kind of went toe to toe with them a little bit here," Cubs manager Rick Renteria said. "Even as young as we are, I thought we held our own." The Cubs avoided a sweep by overcoming two five-run deficits to win 8-7 on Saturday.

"I'm happy about today especially after yesterday was a little bit of a kick in the gut when you have a lead and give up six in the last two innings," Dodgers manager Don Mattingly said.

Jacob Turner (5-11) allowed five runs in five innings in his fifth start for the Cubs since he was acquired from Miami on Aug. 8 for two Class-A pitchers.

The Dodgers went ahead in the first on Adrian Gonzalez's and Hanley Ramirez's RBI doubles. Gonzalez's 112 RBIs lead the majors.

Kemp's two-run home run — his 23rd — extended the Dodgers' lead to 4-1 in the third.

Puig remained in the game after an awkward slide in the fifth. His right foot appeared to catch in the dirt and he stopped short of the bag. After the trainer checked on him, Puig scored from second on Kemp's single for a 5-2 lead.

TRAINER'S ROOM

Dodgers: LHP Hyun-Jin Ryu (shoulder inflammation) continues to progress after playing catch Saturday. .3B Juan Uribe returned to the lineup after sitting out Saturday with a lingering groin problem. Mattingly said the injury doesn't affect Uribe's swing, but does give him problems in the field when he dives.

UP NEXT

Dodgers: Haren (13-11, 4.14 ERA) will start against Giants RHP Jake Peavy (6-4, 2.16) to open a three-game series Monday.

Cubs: LHP Travis Wood (8-12, 4.86) will take the mound against Cardinals RHP Adam Wainwright (19-9, 2.45) to begin a three-game series Monday.

RAIN, RAIN GO AWAY

Rain fell about 30 minutes before first pitch. The grounds crew began to roll out the tarp, but quickly rolled it up again as the rain slowed. The game started two minutes after its 1:20 scheduled start.