George Bernard Shaw said this quote

You have learnt something. That always feels at first as if you have lost something.