William Hazlitt said this quote

Learning is its own exceeding great reward.