The 32-year-old Goldschmidt spent the first eight seasons of his career with the Arizona Diamondbacks and was a fan favorite during his tenure. He hit .297 with 209 homers and 710 RBIs in his eight years in the desert, helping the franchise make the playoffs in 2011 and 2017.
The Diamondbacks honored Goldschmidt with a tribute video before the game that highlighted some of his best moments. He got a big ovation before his first at-bat in the first inning, in which he drew a walk.
In the third, he drove a changeup from Alex Young over the right-center-field fence for his 32nd homer of the year. It was his 100th career homer at Chase Field, which is a stadium record. He finished 2-for-4 with a walk and a strikeout to go with the home run in a 9-7 win.
The Associated Press contributed to this report.