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.
(..) - I am. And you're Will. I've seen a picture of you. That's how I recognize you. Listen, Kenny, why don't we skip the lesson today? We can go again next week. Do I have to give it back to my mom? Well, I won't tell her if you won't. How did you know my father? Well, this was on his sales route... (..)2003 Big Fish
(..) Now, you may well ask... Oh, darling, darling, it's still your night. ...why did it strike so quick on gold when nothing else would attract it? That was the lesson I learned that day... ...the day my son was born. Sometimes the only way to catch an uncatchable woman... (..)2003 Big Fish