Give someone a piece of one’s mind

Meaning: To tell someone angrily what you think about their behaviour.

Example: She gave the contractor a piece of her mind after the work was left unfinished.