what for (2)
what for (2) {n. phr.}, {informal}
A scolding, or other punishment. — Usually used with "get" or "give".
Tom got what for from his father for answering him rudely, and I heard him crying in the house.
The teacher gave me what for because I was late.
Categories:
Source: A Dictionary of American Idioms