The severity remains unknown. He will travel with the team to San Francisco and undergo tests to reach a formal diagnosis.
"We don't know if it's a pull, a strain or a pretty severe cramp," Padres manager Bud Black said. "He felt a little something, but he continued through the inning. When he got back to the dugout, he was in a little bit of pain. There's some soreness there, and we'll evaluate it further."
Cabrera had the muscle iced after the game and was upset with the injury.
"I knew something was wrong right away," Cabrera said. "I have experience with hamstring problems, and this one is unfortuante. They didn't say exactly what the injury was. Right now, everything feels fine. We'll have to wait and see how it feels on Monday."
The injury is ill timed because Cabrera is on fire. He went 3-for-4 on Sunday and is hitting .305 this season while playing a quality shortstop. He's played in all 69 games this season and, to this point, Cabrera has been the Padres' best player.
"I don't want to miss any time," Cabrera said. "It's too bad that this happened."
Scott Bair is a contributor to MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.