Experience is the name every one gives to their mistakes.
Oscar Wilde (1854-1900) Irish poet, wit, dramatist
Lady Windermere’s Fan, Act 3 [Mr. Dumby] (1892)
(Source)
Also in Wilde's The Picture of Dorian Gray, ch. 4 (1890):Experience was of no ethical value. It was merely the name men gave to their mistakes.