17And I hated life, because the work that is done under the sun is evil upon me, for all is vanity and a striving after wind.18And I hated all my labor in which I toil under the sun, because I must leave it to the man who will come after me.19And who knows whether he will be a wise man or a fool, yet he will have dominion over all my labor in which I toiled and in which I acted wisely under the sun? This also is vanity.20So I turned my heart to despair over all the labor that I had done under the sun.21For there is a man whose labor is done with wisdom, knowledge, and skill, yet to a man who has not labored in it he must give his portion; this also is vanity and a great evil.22For what does a man gain from all his labor and from the striving of his heart with which he toils under the sun?23For all his days his work is pain and vexation; even at night his heart does not rest; this also is vanity.24There is nothing good for a man except that he eat and drink and cause his soul to see good in his labor; this also I saw is from the hand of God.25For who can eat and who can have enjoyment apart from me?26For to the man who is good before him God gives wisdom, knowledge, and joy, but to the sinner he gives the task of gathering and collecting to give to one who is good before God; this also is vanity and a striving after wind.