give what for

Verb

 * 1)  To scold; to punish, especially verbally.
 * When she found out, she really gave him what for.