idiom
teach someone a lesson
किसी को उनकी गलती से सिखाना
Meaning
to make someone learn from their mistake
Example
The teacher’s punishment really **taught him a lesson**.
शिक्षक की सजा ने उसे सचमुच एक पाठ सिखाया।