idiom
teach someone a lesson
誰かに自分の間違いから学ばせる
Meaning
to make someone learn from their mistake
Example
The teacher’s punishment really **taught him a lesson**.
先生の罰は本当に彼に**教訓を与えました**。