20So my heart began to despair over all the labor that I had done under the sun.
21When there is a man who has labored with wisdom, knowledge, and skill, and he must give his portion to a man who has not worked for it, this too is futile and a great evil.
22For what does a man get for all the toil and striving with which he labors under the sun?
23Indeed, all his days are filled with grief, and his task is sorrowful; even at night, his mind does not rest. This too is futile.
— Ecclesiastes 2:20-23