learn your lesson

idiomPart oflearn

learn your lesson — idiom

1. To understand what to avoid in the future because of a past bad experience.

1.idiom
Definition

To understand what to avoid in the future because of a past bad experience.

Example

After failing the exam, Sara learned her lesson and studied harder.

Brian learned his lesson when he got lost without a map.