PHOENIX (AP) — San Francisco Giants infielder Pablo Sandoval will miss the remainder of the season after tearing his right hamstring while sliding.

Giants manager Bruce Bochy said Thursday that the 2012 World Series MVP has a significant tear requiring surgery. Sandoval was injured while sliding into home plate Sunday against San Diego.

READ MORE: Blue Jackets Snap Skid, Rally to Beat Sharks 6-4

The 31-year-old Sandoval was hitting .248 with nine homers and 40 RBIs. He also played first and third base during his second stint with San Francisco.

Sandoval played his first seven seasons with the Giants, then became a free agent and signed a $95 million, five-year contract with Boston after the 2014 season.

READ MORE: Berkeley Bookstore Raffles Autographed Special Edition of McCartney's 'The Lyrics'

He was released by the Red Sox in 2017 and signed with the Giants three days later. San Francisco is paying the $545,000 minimum this year, which is offset against the $18 million Sandoval is owed by Boston.

© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.

MORE NEWS: UPDATE: SF Restaurant Apologizes for Denying Service to Armed, On-Duty Police Officers