Xenphon Ephesius said this quote

One enjoys the good things more to the extent that one goes to them after having labored in advance, for labors are a sauce for good things