17So I hated life, because the work that is done under the sun was grievous to me. All of it is meaningless, a chasing after the wind. 18I hated all the things I had toiled for under the sun, because I must leave them to the one who comes after me. 19And who knows whether he will be a wise man or a fool? Yet he will have control over all the work into which I have poured my effort and skill under the sun. This too is meaningless. 20So my heart began to despair over all my toilsome labour under the sun. 21For a man may do his work with wisdom, knowledge and skill, and then he must leave all he owns to someone who has not worked for it. This too is meaningless and a great misfortune. 22What does a man get for all the toil and anxious striving with which he labours under the sun? 23All his days his work is pain and grief; even at night his mind does not rest. This too is meaningless.
24A man can do nothing better than to eat and drink and find satisfaction in his work. This too, I see, is from the hand of God, 25for without him, who can eat or find enjoyment? 26To the man who pleases him, God gives wisdom, knowledge and happiness, but to the sinner he gives the task of gathering and storing up wealth to hand it over to the one who pleases God. This too is meaningless, a chasing after the wind.