idiom
take someone to task
Meaning
to strongly criticize someone for something they did wrong
Example
The teacher **took him to task** for cheating on the exam.