Lloyd Alexander said this quote

He learned that the lives of men are short and filled with pain, yet each one a priceless treasure, whether it be that of a prince or a pig-keeper. And, at the last, the book taught him that while nothing was certain, all was possible. At the end of knowledge, wisdom begins, Dallben murmured. And at the end of wisdom there is not grief, but hope.