Cespedes played the field in the sixth before Craig Gentry replaced him defensively to open the seventh.
The injury put a damper on an outstanding offensive night for Cespedes, who homered twice to snap a 25-game homerless drought and matched a career high with five RBIs.
Jane Lee is a reporter for MLB.com. Aaron Leibowitz is an associate reporter for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.