I think going back to that verse for a moment, a proper understanding of this verse says that a good and righteous person ought to instill character and righteousness in their children, which will then be passed on for generations and will be an inheritance that they'll draw from and draw them towards God.