The problem we discovered a very long time, and she would occasionally stop me from playing.
Djokovic, incidentally, is assured of his fifth number one record even before the ATP Finals begin as a result of Nadal's late withdrawal through injury.
Nadal was spotted leaving hospital with his right ankle in a bandage following surgery on Monday.
"An arthroscopy will be practiced to remove it and be able to be in flawless conditions for the beginning of next season", Nadal's doctor Angel Ruiz-Cotorro, of Clnica Mapfre de Medicina del Tenis, said in the statement.
The 32-year-old took to social media to announce that ongoing abdominal and ankle injuries have brought his season to an end.
It means that Novak Djokovic, who returned to top spot in the world rankings today, is now guaranteed to end the year as number one as neither the injured Nadal nor Roger Federer, who is too far behind, can catch him.
The left-hander excels on the dirt and has won a staggering 11 French Open titles.
"What Novak has achieved this season has to go down as one of the great sporting comebacks", ATP Executive Chairman Chris Kerned said. "It's been a phenomenal return to form that would have been hard to imagine just six months ago", ATP executive chairman and president Chris Kermode said.
The Spaniard pulled out of the Paris Masters with an abdominal injury and after failing to recover in time, has now withdrawn from next week's event.
He was forced to retire mid-way through his US Open semi-final with Juan Martin Del Potro in September due to pain in his right knee and has not been able to play a competitive match since.
Novak Djokovic of Serbia shouts during the final match of the Paris Masters tennis tournament against Karen Khachanov of Russian Federation at the Bercy Arena in Paris, France, Sunday, Nov. 4, 2018.