A good man leaves an inheritance to his children's children, but the sinner's wealth is laid up for the righteous.
Proverbs 13:22 ESV

This requires that a good man accumulate enough wealth to leave an inheritance for his grandchildren and that the government doesn't steal it. The accumulation of honest wealth is a GOOD thing.