Hamilton was sidelined since May 31 with a strained left hamstring. He has played in only seven games this season, batting .273 with two homers and five RBIs.
He was fifth in the lineup and in left field against Baltimore.
Texas made room for Hamilton on the 25-man roster by optioning rookie Joey Gallo to Triple-A Round Rock. Gallo had his contract purchased from Double-A Frisco on June 2 and hit .218 with five home runs and 13 RBIs over 25 games in his major league debut.
He ended his stint with a 7-for-47 skid that included 27 strikeouts.