Ecclesiastes 2:22

20 So my heart began to despair over all the labor that I had done under the sun.

21 When 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.

For what does a man get for all the toil and striving with which he labors under the sun?

23 Indeed, all his days are filled with grief, and his task is sorrowful; even at night, his mind does not rest. This too is futile.

24 Nothing is better for a man than to eat and drink and enjoy his work. I have also seen that this is from the hand of God.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
For what does a man get for all the toil and striving with which he labors under the sun?
KJV
For what hath man of all his labour, and of the vexation of his heart, wherein he hath laboured under the sun?
WEB
For what does a man have of all his labor and of the striving of his heart, in which he labors under the sun?
ASV
For what hath a man of all his labor, and of the striving of his heart, wherein he laboreth under the sun?
DARBY
For what will man have of all his labour and of the striving of his heart, wherewith he hath wearied himself under the sun?
BLB
For what has been for the man for all his toil and for the striving of his heart, with which he toils under the sun?
ÅB
For hva har mennesket for alt sitt strev og for sitt hjertes attrå, som han møyer seg med under solen?
OTB
Hva får mennesker ut av alt sitt strev og sin bekymrede streben som de arbeider med under solen?
B1930
For hvad har mennesket for alt sitt strev og for sitt hjertes attrå, som han møier sig med under solen?

Study notes (Tyndale)

Original text and word study

Cross references