Roger Federer, a 20-time Grand Slam singles champion, will retire from top-level tennis after the Laver Cup in London later this month.
Swiss Federer, 41, has not played since Wimbledon 2021, after which he had a third knee operation.
“My body’s message to me lately has been clear,” Federer said.
“I have played more than 1,500 matches over 24 years. Now I must recognise when it is time to end my competitive career.”
He added: “To the game of tennis, I love you and will never leave you.”