San Francisco 49ers running back Raheem Mostert will undergo season-ending surgery on his knee after getting injured in the season opener.

Coach Kyle Shanahan had said Mostert was expected to miss eight weeks because of chipped cartilage in his knee, but Mostert announced on his Twitter account that he will miss the rest of the season.

Mostert said he was “gutted” by the news, but after consulting with multiple doctors felt this was the best decision for his long-term future.