TORONTO - Ryan Goins drove in the eventual winning run before leaving the game with an injury and the Toronto Blue Jays held on to beat the Tampa Bay Rays 3-2 on Wednesday.

Goins hit a single up the middle to score Steve Pearce from third base in the bottom of the sixth inning for his 45th RBI of the season. He had to leave the game shortly after when Daniel Robertson stepped on his left forearm as he was trying to steal second.

Pearce hit a solo homer, one of his two hits on the night, and Jose Bautista drove in a run for the Blue Jays (58-62). Josh Donaldson also had two hits.

Marcus Stroman (11-6) went 6 1/3 innings, giving up two runs and six hits while walking three and striking out seven. Roberto Osuna worked the ninth for his 31st save.

Brad Miller had an RBI groundout for the Rays (60-62) and pinch hitter Steven Souza Jr. picked up an RBI on a walk. Rookie Jacob Faria (5-4) allowed three runs on six hits, walked two and struck out two over 5 1/3 innings.

Toronto began Wednesday's contest four games out of a wild-card spot. The Rays were two games back.