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,
because sometimes a man who has toiled with wisdom and knowledge and skill must leave all to be enjoyed by a man who did not toil for it. This also is vanity and a great evil.
What has a man from all the toil and strain with which he toils beneath the sun?