I was led to another verse about the wealth transfer:

“To the person who pleases him, God gives wisdom, knowledge and happiness, but to the sinner he gives the task of gathering and storing up wealth to hand it over to the one who pleases God.”   - Ecclesiastes 2:26