Eccl 2:10-26 : 10 And whatsoever mine eyes desired I kept not from them; I withheld not my heart from any joy; for my heart rejoiced because of all my labor; and this was my portion from all my labor.
11 Then I looked on all the works that my hands had wrought, and on the labor that I had labored to do; and, behold, all was vanity and a striving after wind, and there was no profit under the sun.
12 And I turned myself to behold wisdom, and madness, and folly: for what [can] the man [do] that cometh after the king? [even] that which hath been done long ago.
13 Then I saw that wisdom excelleth folly, as far as light excelleth darkness.
14 The wise man's eyes are in his head, and the fool walketh in darkness: and yet I perceived that one event happeneth to them all.
15 Then said I in my heart, As it happeneth to the fool, so will it happen even to me; and why was I then more wise? Then said I in my heart, that this also is vanity.
16 For of the wise man, even as of the fool, there is no remembrance for ever; seeing that in the days to come all will have been long forgotten. And how doth the wise man die even as the fool!
17 So I hated life, because the work that is wrought under the sun was grievous unto me; for all is vanity and a striving after wind.
18 And I hated all my labor wherein I labored under the sun, seeing that I must leave it unto the man that shall be after me.
19 And who knoweth whether he will be a wise man or a fool? yet will he have rule over all my labor wherein I have labored, and wherein I have showed myself wise under the sun. This also is vanity.
20 Therefore I turned about to cause my heart to despair concerning all the labor wherein I had labored under the sun.
21 For there is a man whose labor is with wisdom, and with knowledge, and with skilfulness; yet to a man that hath not labored therein shall he leave it for his portion. This also is vanity and a great evil.
22 For what hath a man of all his labor, and of the striving of his heart, wherein he laboreth under the sun?
23 For all his days are [but] sorrows, and his travail is grief; yea, even in the night his heart taketh no rest. This also is vanity.
24 There is nothing better for a man [than] that he should eat and drink, and make his soul enjoy good in his labor. This also I saw, that it is from the hand of God.
25 For who can eat, or who can have enjoyment, more than I?
26 For to the man that pleaseth him [God] giveth wisdom, and knowledge, and joy; but to the sinner he giveth travail, to gather and to heap up, that he may give to him that pleaseth God. This also is vanity and a striving after wind.