PHOENIX (AP) For all the home runs Paul Goldschmidt has hit - he launched No. 109 in his career in the Arizona Diamondbacks' 6-4 victory over the Oakland Athletics - Friday night's win came down to a hustle play Goldschmidt made, at least in the eyes of manager Chip Hale.

Goldschmidt struck out swinging in the sixth inning, one inning before his mammoth two-run shot that sealed the Diamondbacks' win. But he reached first base on the second of two passed balls by Oakland catcher Stephen Vogt in the inning when he decided to sprint down the line on the dropped third strike. Goldschmidt eventually scored the tying run on a sacrifice fly by Welington Castillo.

Then the Diamondbacks scored four runs in the seventh inning and chased Oakland ace Sonny Gray, with Aaron Hill's pinch-hit double making the score 3-2 and Goldschmidt moving into fifth place all-time in career home runs as a Diamondback.

More from FoxSports

''I truly believe we won that game because our guy, Goldy, hustled on a strikeout,'' Hale said. ''A lot of guys just get upset and walk back to the dugout. He saw that ball get away and he busted it to first base. And that, to me, epitomizes our club. He gives everything he has every night.''

Goldschmidt said he acted on instincts.

''I'm sure there's been times that I haven't ran. Fortunately it worked out that time,'' Goldschmidt said. ''I think that's what we all try to do. We take a lot of pride in trying to play the game hard. That one time helped us win. It's not just me, it's every single guy on this team.''

The A's, ahead 2-0 until the sixth, lost their third straight and are 4-12 over their last 16 games.

Goldschmidt crushed an offering from switch-pitcher Pat Venditte off the bottom of the video board in center field. The home run traveled with an exit speed of 112 mph, according to MLB Statcast, making it the hardest ball hit by the All-Star slugger this season.

The Diamondbacks are 10-5 in interleague play this season and ended a four-game losing streak with their sixth straight win over Oakland at home. The teams hadn't played since 2012.

Gray (12-6) lasted 6 1-3 innings and allowed four runs, two earned, with five strikeouts and two walks. He came into the game 8-2 on the road this season.

''It's tough when Sonny is pitching his tail off and making good pitches and we can't play defense behind him,'' Vogt said. ''For me, that was unacceptable for two of those balls to get by me.''

Randall Delgado (5-3) pitched one inning of scoreless relief for the win.

Oakland took a 2-0 lead on doubles by Marcus Semien and Mark Canha sandwiching Billy Burns' run-scoring single. Burns and Canha drove in a run each with two outs against Diamondbacks starter Chase Anderson.

Anderson, however, settled down, and left with a no-decision after allowing five hits, striking out three and walking one.

The Diamondbacks took advantage of Vogt's misplays, as the passed balls helped put runners at the corners with one out. David Peralta laced a double into right field to drive in Ender Inciarte, and with runners at second and third, Castillo's fly ball drove in Goldschmidt to tie the score.

Josh Reddick, who made the catch on the sacrifice fly, sent a strong throw toward home but Canha cut it off. Reddick gestured angrily after the play, throwing his glove hand up in disgust.

Brett Lawrie's two-run home run into the upper deck in left field completed the scoring. Brad Ziegler got two outs for his 22nd straight converted save chance.

MANAGERS AND FRIENDS

Hale and A's manager Bob Melvin faced each other for the first time since Hale was named Arizona's manager in October 2014. Hale was a third base and infield coach on Melvin's staff from 2007-09 in Arizona and bench coach with Melvin's Oakland staff from 2012-14.

TRAINER'S ROOM

Athletics: 1B Ike Davis had successful arthroscopic left hip surgery on Thursday in Vail, Colorado, the club announced. The procedure repaired the torn labrum in Davis' left hip.

Diamondbacks: Relief pitcher Daniel Hudson has a dislodged right index fingernail from being struck by a ball Thursday but could be available to pitch as soon as Saturday.

UP NEXT

Athletics: RHP Aaron Brooks, called up from Triple-A Nashville after Friday's game, will get the start in place of Felix Doubront on Saturday. Doubront's next start was pushed back to this coming Monday. It's Brooks' second callup with Oakland this season, and the A's optioned INF Max Muncy to Nashville in a corresponding move.

DIAMONDBACKS: RHP Jhoulys Chacin is coming off his Diamondbacks debut on Monday, when he allowed two earned runs in 6 1-3 innings in a loss to St. Louis. It's scheduled to be his first career start against Oakland.