CHICAGO — Buster Posey went 4 for 4 with his 14th homer, leading Madison Bumgarner and the San Francisco Giants to a 5-3 victory over the Chicago Cubs on Thursday night.

Pablo Sandoval added three hits and two RBIs as the Giants rebounded from a 2-1 loss earlier in the day in the resumption of their suspended game in the series opener.

Bumgarner (14-9) struck out 12 in seven innings. He allowed three runs and seven hits.

Chicago got off to a fast start in the nightcap. Justin Ruggiano and Welington Castillo hit back-to-back homers in the first to give the Cubs a 3-1 lead.

But San Francisco grabbed the lead for good on Posey’s leadoff drive to left in the fifth against Travis Wood (7-11). Michael Morse added a sacrifice fly in the seventh that made it 5-3.

Wood (7-11) gave up four runs and eight hits in six innings. He is 0-6 with a 5.45 ERA in his last 12 starts.

Touted Cubs prospect Javier Baez struck out four times, including with two out and two runners in scoring position in the seventh inning. Through 71 big league at-bats, Baez has struck out 31 times.

Game 1: Cubs 2, Giants 1

After two days, the first upheld protest in nearly 30 years and another rain storm, the Cubs finally completed a 2-1 victory over the Giants in a suspended game on Thursday night.

Anthony Rizzo’s two-run homer Tuesday held up as the team’s played the final 4½ innings of a game the Cubs thought they had won 2-0 before Major League Baseball ruled was suspended.

A short rainstorm caused a delay of more than 4 1/2 hours after the grounds crew couldn’t put the tarp down quickly. The umpires said the field was unplayable and called it at 11:16 p.m. But the Giants protested, and MLB ruled that the tarp had not been properly put away after its previous use, the first upheld protest since 1986.

The game was suspended until Thursday.

NOTES

INF Ehire Adrianza has been slow to recover from a strained groin injury, which raises doubts about his status in the final weeks of the season. “He’s not ready yet, so that’s another decision we’ll have to make,” manager Bruce Bochy said.

Bochy was optimistic that 1B Brandon Belt and C Hector Sanchez would recover from concussions in time for the stretch run.