prendersi pena

Etymology
lit. 'to take punishment for oneself'.