Ecclesiastes 2:18-19
Ecclesiastes 2:18-19 NASB1995
Thus I hated all the fruit of my labor for which I had labored under the sun, for 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 have control over all the fruit of my labor for which I have labored by acting wisely under the sun. This too is vanity.