Ecclesiastes 2:18-20 - WEB
18
I hated all my labor in which I labored under the sun, seeing that I must leave it to the man who comes after me.
19
Who knows whether he will be a wise man or a fool? Yet he will have rule over all of my labor in which I have labored, and in which I have showed myself wise under the sun. This also is vanity.
20
Therefore I began to cause my heart to despair concerning all the labor in which I had labored under the sun.
Full Chapter