Ecclesiastes 2:26

26 For he 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 in God's sight. This also is vanity and pursuit of the wind.