Teach (one) a lesson American British verb phrase
To counsel one to refrain from engaging in undesirable behavior in the future by exposing him to the negative consequences of his actions
Having my phone left in class really taught me a lesson - I'll never careless.
I intended to teach the newcomer a lesson for failing to follow company's regulations.
Will you stop resorting violence to friend or am I going to teach you a lesson?
The verb "teach" should be conjugated according to its tense
Daughter: So I really want all my friends to have a great time. I was thinking it would be a good idea to have some candy out on the tables for people to snack on.
Mother: Well, if you want them to really enjoy themselves, candy is dandy but liquor is quicker.