(all) the better for (something)
Improved or made better by (doing) something. It was tough, but I feel the better for having confronted her about my feelings. I'm sorry I got so ratty with you earlier. I think we'll both be all the better for a full night's sleep.
(all) the better for something
made better by something or by doing something; benefiting from something: You’ll be all the better for a weekend by the sea.