Serena Williams pulled out of the French Open before her fourth-round match with Maria Sharapova because of an injury that affected her serve.
The 23-time Grand Slam winner recently returned to tennis after giving birth to her first child, but looked in good form in her opening matches.
“I’ve had issues with the right pectoral muscle to the point where I can’t serve,” said the 36-year-old.
“I’ll have a scan. I won’t know about Wimbledon until I get the results.”
Williams said she first felt the problem during her third-round win over German 11th seed Julia Gorges on Saturday.
She played in a doubles match with sister Venus on Sunday, saying she wanted to try to manage the problem before her match with Sharapova.
“I tried lots of taping and support to see how it felt in match circumstances,” Williams said.
“It is hard to play when I can’t physically serve. I’ve never had this injury before, I’ve never felt it in my life and it was so painful.
“I don’t know how to manage it.”
Williams said she will have an MRI scan in Paris on Tuesday and will stay in the French capital at least until the extent of her injury is clear.
Sharapova said she was “looking forward” to playing Williams and “disappointed” the American had to withdraw.
“I wish her a speedy recovery and hope she returns to the tour soon,” she added.
The 31-year-old Russian, a two-time winner at Roland Garros, will now play either Spain’s 2016 champion Garbine Muguruza or Ukraine’s Lesia Tsurenko in the last eight.
The possibility of Williams facing Sharapova had been grabbing attention since the draw was made at Roland Garros 10 days ago.
And the meeting of the two former champions, both making comebacks at Roland Garros this year, was set up when Williams beat Gorges shortly after Sharapova beat Czech sixth seed Karolina Pliskova.
Williams has recently returned after giving birth to daughter Olympia in September, while 28th seed Sharapova is back in the draw after being refused a wildcard last year as she returned from a 15-month drugs ban.
The pair have had a frosty relationship since they first met on court in 2003, although Williams said in her pre-match news conference on Saturday that she did not have any “negative feelings” towards the Russian.
There has not been much of a rivalry on court in recent years, Williams having won 19 of their 21 meetings. Both of Sharapova’s wins came in 2004 – including that year’s Wimbledon final.