Denis Waitley said this quote

Mistakes are painful when they happen, but years later a collection of mistakes is what is called experience.