"It's precautionary to make sure it doesn't lead into something," Marlins general manager Dan Jennings said.
Gordon was shaken up in the ninth inning of Miami's 7-2 win over San Francisco on Thursday.
Gordon, who had three hits on the night, scored from second on Giancarlo Stanton's RBI single to left. Racing home with the team's seventh run, Gordon awkwardly crossed the plate standing up.
"It's just like a cramp" in the right hamstring area, Gordon said. "The decision was to do the smart thing."
Gordon blamed himself for not sliding on what turned into a close play, as Giants catcher Buster Posey attempted a swipe tag.
"It's my own fault; I should have just slid," Gordon said.
Gordon went into the clubhouse after scoring, but he came out and played in the bottom of the ninth inning.
"His legs are such an important part of his game," Jennings said. "Let's err on the side of caution right now. Let's make sure they're not sore, and give him a day and get him back tomorrow."
Gordon is riding a 12-game hitting streak, and he paces the Majors with 52 hits.
Donovan Solano filled in at second base Friday. Christian Yelich, reinstated from the disabled list Friday, led off in place of Gordon.
Gordon said he is being more careful in his preparation. With the Dodgers last year, he participated in two winter ball stints prior to the season. He initially went to the Dominican Republic, where he was asked to play some center field. He got sick and lost 10 pounds. Gordon came home early and then went back to play winter ball in Puerto Rico, where he saw action at second base.
"Everybody was like, 'Dee, you got tired last year,'" Gordon said. "No one can do that and not get tired.
"It's fine, because I know how to take care of myself better this year. I'm not going all out unnecessarily."