DETROIT — The All-Star catcher Gary Sanchez became the latest injury concern for the Yankees when he left the second game of Thursday’s doubleheader with left groin tightness as his team beat Detroit, 6-4, completing a sweep.

Sanchez left in the fourth, an inning after he had been thrown out in his first stolen-base attempt this year. He has been on the injured list three times in the past two seasons because of groin strains.

The Yankees slugger Edwin Encarnacion left the first game with an oblique problem. The American League East-leading Yankees won that one, 10-4.

C. C. Sabathia pitched into the fourth inning of the second game in his return from the injured list. Sabathia, who has dealt with problems in his right knee, allowed only one hit through the first three innings but gave up a two-run double to Brandon Dixon in the fourth. He threw 56 pitches in three and a third innings before being relieved by Domingo German (18-4).