Ecclesiastes is a wisdom book that questions the meaning of life and the value of human endeavors. The title 'Qoheleth' suggests one who assembles or teaches a congregation. Its canonicity was debated due to its skeptical tone but was accepted due to its orthodox conclusion of fearing God.
Ecclesiastes
Chapter 6
There is also another evil, which I have seen under the sun, and, indeed, it is frequent among men:
a man to whom God has given wealth, and resources, and honor, and he lacks nothing for his soul out of all that he desires, yet God does not give him the ability to consume it, but instead a stranger will consume it. This is emptiness and a great affliction.
If a man should produce one hundred children, and live for many years, and reach an old age, but his soul not make use of the goods of his substance, and, besides this, he have no burial, then I declare that a stillborn child is better than he.
For he arrives in vain, and he continues on into darkness, and his name shall be wiped away by oblivion.
He has not seen the sun, nor recognized the difference between good and evil.
Even if he lived for two thousand years, and yet he has not enjoyed what is good, does not each one rush toward the same place?
All the labors of a man are for his mouth, but his soul will not be satisfied.
What do the wise have which is more than the foolish? And what does the pauper have, except to continue on to that place, where there is life?
It is better to see what you desire, than to desire what you cannot obtain. But this, too, is emptiness and a presumption of spirit.
All who are future, their names have already been determined. It is known that man is not able to contend in judgment with him who is stronger than himself.
There are many words, and many in these arguments holding forth, so what benefit is there to a man?
For who knows what is beneficial for a man in life, during the number of the days of his fleeting life? For they will be passed away like a shadow. And who will reveal to him what will happen in the future under the sun?