Exodus 34:7 CSB

7 maintaining faithful love to a thousand [generations], forgiving wrongdoing, rebellion, and sin. But He will not leave [the guilty] unpunished, bringing the consequences of the fathers' wrongdoing on the children and grandchildren to the third and fourth generation.