Ecclesiastes 2:26

26 God gives wisdom, knowledge, and joy to anyone who pleases him. But to the person who continues to sin, he gives the job of gathering and collecting [wealth]. The sinner must turn his wealth over to the person who pleases God. Even this is pointless. [It's like] trying to catch the wind.