Learn One's Lesson

Profit from experience, especially an unpleasant one.

Examples:

  • From now on she'd read the instructions first; she'd learned her lesson.