CHICAGO (AP) — Paul Goldschmidt snapped a tie in the ninth inning with his third long homer of the game, and the Arizona Diamondbacks pulled out a rain-delayed 10-8 victory over the Chicago Cubs on Thursday.

Goldschmidt hit a 3-2 pitch from Wade Davis (2-1) deep into the right-center bleachers with one out. J.D. Martinez followed Davis with another solo blast off the Cubs closer.

READ MORE: Man Says Van Was Stolen With 3-Year-Old Daughter Inside In West Rogers Park

Goldschmidt’s first career three-homer game gave him 25 for the season, and his six RBIs matched a career high.

READ MORE: Two Simeon High School Students, Both 15, Killed In Shootings Four Hours Apart

Brandon Drury also homered for Arizona, which remained percentage points ahead of Colorado for the top NL wild card.

Willson Contreras smacked two home runs and had a career high six RBIs for Chicago, which lost consecutive games for the first time since the All-Star break. The Cubs’ NL Central lead over Milwaukee slipped to 1 1/2 games.

MORE NEWS: Chicago Weather: High Waves, Dangerous Conditions Along Lakefront

(© 2017 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.)