give (one) (the) what for
To punish, rebuke, scold, or berate one thoroughly and intensely. I told her a thousand times not to take the car without asking! Well, I'll give her what for when she gets home. The boss is quick to give you the what for if you make even a minor mistake.
give someone what for
punish or scold someone severely. British informal