Ecclesiastes 2:17-21 King James 2000 (KJ2000)

17. Therefore I hated life; because the work that is done under the sun is grievous unto me: for all is vanity and like grasping the wind.

18. Yea, I hated all my labor in which I had toiled under the sun: because I must leave it unto the man that shall be after me.

19. And who knows whether he shall be a wise man or a fool? yet shall he have rule over all my labor in which I have labored, and in which I have shown myself wise under the sun. This is also vanity.

20. Therefore I gave my heart up to despair of all the labor in which I toiled under the sun.

21. For there is a man whose labor is in wisdom, and in knowledge, and in equity; yet to a man that has not labored in it shall he leave it for his portion. This also is vanity and a great evil.

Ecclesiastes 2