Dolly Parton said this quote

I thank God for my failures. Maybe not at the time but after some reflection. I never feel like a failure just because something I tried has failed.