Ecclesiastes 2:21-26 NIV

21 For a person may labor with wisdom, knowledge and skill, and then they must leave all they own to another who has not toiled for it. This too is meaningless and a great misfortune.
22 What do people get for all the toil and anxious striving with which they labor under the sun?

References for Ecclesiastes 2:22

23 All their days their work is grief and pain; even at night their minds do not rest. This too is meaningless.

References for Ecclesiastes 2:23

24 A person can do nothing better than to eat and drink and find satisfaction in their own toil. This too, I see, is from the hand of God,

References for Ecclesiastes 2:24

25 for without him, who can eat or find enjoyment?

References for Ecclesiastes 2:25

26 To the person 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.

References for Ecclesiastes 2:26