Exodus 20:5-6

20:5 You shall not bow down to them or serve them, for I, the Lord, your God, am a jealous God, responding to the transgression of fathers by dealing with children to the third and fourth generations of those who reject me, 20:6 and showing covenant faithfulness to a thousand generations of those who love me and keep my commandments.

Exodus 34:7

34:7 keeping loyal love for thousands, forgiving iniquity and transgression and sin. But he by no means leaves the guilty unpunished, responding to the transgression of fathers by dealing with children and children’s children, to the third and fourth generation.”

Numbers 14:18

14:18 ‘The Lord is slow to anger and abounding in loyal love, forgiving iniquity and transgression, but by no means clearing the guilty, visiting the iniquity of the fathers on the children until the third and fourth generations.’

Deuteronomy 5:9-10

5:9 You must not worship or serve them, for I, the Lord your God, am a jealous God. I punish the sons, grandsons, and great-grandsons for the sin of the fathers who reject me, 5:10 but I show covenant faithfulness to the thousands who choose me and keep my commandments.

Deuteronomy 7:9-10

7:9 So realize that the Lord your God is the true God, the faithful God who keeps covenant faithfully with those who love him and keep his commandments, to a thousand generations, 7:10 but who pays back those who hate him as they deserve and destroys them. He will not ignore those who hate him but will repay them as they deserve!