Ecclesiastes 2:26

ISV(i) 26 After all, to the person who is good in God's sight, he gives wisdom, knowledge, and joy, but to the sinner he gives the troublesome task of accumulating and acquiring in order to leave it to someone who is good in the sight of God. This also is pointless and chasing after the wind.