idiom
sadder but wiser
Meaning
disappointed but having learned from the experience
Example
After that mistake, she was **sadder but wiser**.