The injury happened while Sharapova was warming up for the match.
In Sunday's final, Jankovic will now meet either sixth-seeded Anna Chakvetadze or Frenchwoman Alize Cornet. The pair were due to play later today.
Despite her withdrawal from the Italian Open, Sharapova will become the WTA No 1 on Monday after Justine Henin's shock retirement last week.