Find the word definition

Wiktionary
give someone what for

vb. (context idiomatic slang English) To punish; to rebuke.