teach someone a lesson

US /tiːtʃ ˈsʌm.wʌn ə ˈles.ən/
UK /tiːtʃ ˈsʌm.wʌn ə ˈles.ən/
"teach someone a lesson" picture
1.

to punish someone for their bad behavior in a way that they will remember and learn from

:
I'm going to teach him a lesson for being so rude.
The defeat should teach them a lesson about overconfidence.