To the person who pleases Him, God gives wisdom, knowledge, and joy, but to the sinner, He gives the task of gathering and storing wealth to hand it over to the one who pleases God. This too is meaningless, a chasing after the wind.
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.