koりるriru
1.

To reach a point of realization after experiencing a negative outcome, leading to a strong determination not to repeat the same mistake in the future.

2.

To become disillusioned from an unpleasant experience, resulting in a lack of motivation or desire to engage in similar actions again.

Example:

これで彼女も懲りるだろう。