William Saroyan said this quote

Good people are good because they've come to wisdom through failure.