Tennis legend Serena Williams announced Wednesday that she has withdrawn from the U.S. Open due to a torn hamstring injury. She suffered the injury in a first-round match at Wimbledon against Aliaksandra Sasnovich in late June.

Williams, who turns 40 on Sept. 26, issued a statement on Instagram regarding her decision.

“After careful consideration following the advice of my doctors and medical team, I have decided to withdraw from the U.S. Open to allow my body to heal completely from a torn hamstring. New York is one of the most exciting cities in the world and one of my favorite places to play--I’ll miss seeing the fans but will be cheering everyone on from afar. Thank you for the continued support and love. I’ll see you soon,” Williams posted.

Williams' coach Patrick Mouratoglou also posted a statement that read: “We’ve done everything we could, It is heartbreaking, but this is the only possible decision.”

Due to inactivity, Williams has slipped to No. 22 in the WTA rankings.

Williams has won the U.S. Open six times. Her last title at Flushing Meadows came in 2014.

Williams is not the only legend sitting out the Grand Slam event. On the men's side, Roger Federer and Rafael Nadal have both withdrawn from the tournament.

The U.S. Open begins Monday.