proverb

A burnt child dreads the fire.

hurt

is said for

People who avoid repeating a hurting experience, who are more cautious with something that had hurt them before.