learn your lesson - definition and synonyms

phrase
  1. to be unlikely to do something stupid or wrong again, because the last time you did it something unpleasant happened
See also main entry: learn