And whatever my eyes desired I did not keep from them; I kept my heart from no pleasure, for my heart found pleasure in all my toil, and this was my reward for all my toil.
Then I considered all that my hands had done and the toil I had spent in doing it, and behold, all was vanity and a striving after wind, and there was nothing to be gained under the sun.
So I turned to consider wisdom and madness and folly; for what can the man do who comes after the king? Only what he has already done.
Then I saw that wisdom excels folly as light excels darkness.
The wise man has his eyes in his head, but the fool walks in darkness; and yet I perceived that one fate comes to all of them.
Then I said to myself, "What befalls the fool will befall me also; why then have I been so very wise?" And I said to myself that this also is vanity.
For of the wise man as of the fool there is no enduring remembrance, seeing that in the days to come all will have been long forgotten. How the wise man dies just like the fool!
So I hated life, because what is done under the sun was grievous to me; for all is vanity and a striving after wind.
I hated all my toil in which I had toiled under the sun, seeing that I must leave it to the man who will come after me;
and who knows whether he will be a wise man or a fool? Yet he will be master of all for which I toiled and used my wisdom under the sun. This also is vanity.
So I turned about and gave my heart up to despair over all the toil of my labors under the sun,
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved. (Revised Standard Version - Holy Bible)