Take (someone) to task

To scold someone for something that they have done wrong.

The supervisor took me to task for arriving late for work.