idiom
take the rap
Meaning
to be punished or blamed for something, often unfairly.
Example
He **took the rap** for the team’s poor performance.