New Delhi, April 24 -- Germany forward Serge Gnabry has ruled himself out of the World Cup after tearing a muscle in his right thigh while training with Bayern Munich.

Bayern said on Saturday that Gnabry had torn the adductor muscle in his thigh and would be out "for a longer period" without giving any further details.

On Wednesday, the player confirmed on Instagram that he'll miss the World Cup in Mexico, Canada and the United States in June.

"The last few days have been tough to process. A Bayern season which still holds much to play for after securing another Bundesliga title on the weekend," Gnabry wrote. "As for the World Cup dream with Germany. That's sadly over for me.

"Like the rest of the country, I'll be supporting the boys ...