Aristotle said this quote

Education is an ornament in prosperity and a refuge in adversity.