Proverbs 13:22

A good man leaves an inheritance to his children’s children,
but the sinner’s wealth is laid up for the righteous.