Ecclesiastes 2:26

English Standard Version

26 For to the one who pleases him God has given wisdom and knowledge and joy, but to the sinner he has given the business of gathering and collecting, only to give to one who pleases God. This also is vanity and a striving after wind. (Job 27:16; Job 32:8; Pr 13:22; Ec 1:14; Ec 2:7)

New International Version

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.

New International Reader’s Version

26 God gives wisdom, knowledge and happiness to the person who pleases him. But to a sinner he gives the task of gathering and storing up wealth. Then the sinner must hand it over to the one who pleases God. That doesn’t have any meaning either. It’s like chasing the wind.

King James Version

26 For God giveth to a man that is good in his sight wisdom, and knowledge, and joy: but to the sinner he giveth travail, to gather and to heap up, that he may give to him that is good before God. This also is vanity and vexation of spirit.