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."
Cross References (ranked by relevance)
A good man leaveth an inheritance to his children’s children: and the wealth of the sinner is laid up for the just.
He that by usury and unjust gain increaseth his substance, he shall gather it for him that will pity the poor.
Hitherto have ye asked nothing in my name: ask, and ye shall receive, that your joy may be full.
And the LORD said unto Noah, Come thou and all thy house into the ark; for thee have I seen righteous before me in this generation.
But there is a spirit in man: and the inspiration of the Almighty giveth them understanding.
And they were both righteous before God, walking in all the commandments and ordinances of the Lord blameless.
But the wisdom that is from above is first pure, then peaceable, gentle, and easy to be intreated, full of mercy and good fruits, without partiality, and without hypocrisy.
I have seen all the works that are done under the sun; and, behold, all is vanity and vexation of spirit.