I'm glad they got caught. That will 'teach them a lesson'! [=they will learn that they should not do that again]
We 'learned our lesson' the hard way. [=we learned from an unpleasant experience]
They studied the 'lessons' [='teachings'] of the great philosophers.
(..) - (GROANING) Good show, Chip, my boy. (LAUGHS) Excellent! - The infantry's arrived. - (EXCLAIMS) Now, go and teach them a lesson. Go. Yes, those are called books, you third rate musketeers. Oh! I'm off. (SCREAMS) (CHUCKLES NERVOUSLY) (..)2017 Beauty and the Beast