Take one for the team

Altered photo of someone taking a hit for their team
To take one for the team means to accept a problem or unpleasant task so that others do not have to. It describes someone making a sacrifice for the benefit of a group.

The expression comes from team sports, where a player might endure a hit or make a difficult play in order to help the team succeed.

He volunteered to work the late shift and took one for the team.