Teixeira was escorted off the field by Yankees trainer Steve Donohue after he tried to make a play on a foul grounder by Blue Jays outfielder Melky Cabrera. Television replays showed Teixeira reaching for his hamstring as he left the dugout.
Kelly Johnson moved from second base to first and Brian Roberts came in to play second.
Teixeira was limited to 15 games last season because of a right wrist injury suffered at the World Baseball Classic. He entered play Friday hitting .182 with no home runs and one RBI through three games, but had an RBI single in his only at-bat.