And I hated all my toil that I toil at under the sun, because I must leave it to the man who comes after me.
In context
16For there is no lasting remembrance of the wise man any more than of the fool: in the days to come both will already be forgotten. How is it that the wise man dies just like the fool? 17So I hated life, because the work that is done under the sun was grievous to me. For it is all a breath and a chasing after wind. 18And I hated all my toil that I toil at under the sun, because I must leave it to the man who comes after me. 19And who knows whether he will be wise or foolish? Yet he will have mastery over all my toil that I toiled at and did wisely under the sun. This too is a breath. 20So I turned and gave my heart over to despair concerning all the toil that I toiled at under the sun.