Exodus 34:7

Exodus 34:7 AMP

keeping mercy and lovingkindness for thousands, forgiving iniquity and transgression and sin; but He will by no means leave the guilty unpunished, visiting (avenging) the iniquity (sin, guilt) of the fathers upon the children and the grandchildren to the third and fourth generations [that is, calling the children to account for the sins of their fathers].”