King James Version (KJV) - Ecclesiastes 2: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.

Jewish Publication Society of America Version (JPS1917) - Ecclesiastes 2:26 >

For to the man that is good in His sight He giveth wisdom, and knowledge, and joy; but to the sinner He giveth the task, to gather and to heap up, that he may leave to him that is good in the sight of God. This also is vanity and a striving after wind.