God gives wisdom, knowledge and happiness to a man who pleases him. But to a sinner he gives the task of gathering and storing up wealth. Then the sinner must hand it over to the one who pleases God. That doesn't have any meaning either. It's like chasing the wind.