I hated all the things I had toiled for under the sun, because I must leave them to the one who comes after me.1
References for Ecclesiastes 2:18
And who knows whether he will be a wise man or a fool?2 Yet he will have control over all the work into which I have poured my effort and skill under the sun. This too is meaningless.
References for Ecclesiastes 2:19
So my heart began to despair over all my toilsome labor under the sun.