"As many of you know, the past three years have presented me with challenges in the form of injuries and surgeries. I've worked hard to return to full competitive form. But I also know my body's capacities and limits, and its message to me lately has been clear," Federer wrote.