Federer posted his news on Twitter, saying his farewell event will be the Laver Cup in London next week. That is a team event run by his management company.
Federer's last match anywhere came on July 7, 2021, when he lost at Centre Court in the Wimbledon quarterfinals to Hubert Hurkacz 6-3, 7-6 (4), 6-0.
Soon after, Federer had surgery to repair damage to his meniscus and cartilage in his right knee, his third operation on that knee in a span of 1 and a half years.
With inputs from PTI