to learn one's lesson
Example #1:Tom: Yesterday I was in a hurry, so I drove in the carpool lane even though I was all by myself.Joe: So what happened?Tom: I got a ticket. Man! It’s going to cost me a lot of money.Joe: I hope you learned your lesson!Tom: