Ecclesiastes 2:18-26

AKJV(i) 18 Yes, I hated all my labor which I had taken under the sun: because I should leave it to 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 wherein I have labored, and wherein I have showed myself wise under the sun. This is also vanity. 20 Therefore I went about to cause my heart to despair of all the labor which I took 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 therein shall he leave it for his portion. This also is vanity and a great evil. 22 For what has man of all his labor, and of the vexation of his heart, wherein he has labored under the sun? 23 For all his days are sorrows, and his travail grief; yes, his heart takes not rest in the night. This is also vanity. 24 There is nothing better for a man, than that he should eat and drink, and that he should make his soul enjoy good in his labor. This also I saw, that it was from the hand of God. 25 For who can eat, or who else can hasten hereunto, more than I? 26 For God gives to a man that is good in his sight wisdom, and knowledge, and joy: but to the sinner he gives travail, to gather and to heap up, that he may give to him that is good before God. This also is vanity and vexation of spirit.