Terry Pratchett said this quote

Wisdom comes from experience. Experience is often a result of lack of wisdom.