Aristotle said this quote

Learning is an ornament in prosperity, a refuge in adversity, and a provision in old age.