Exodus 20:5-6 NIV

5 You shall not bow down to them or worship1 them; for I, the LORD your God, am a jealous God,2 punishing the children for the sin of the fathers3 to the third and fourth generation4 of those who hate me,
6 but showing love to a thousand5 [ generations] of those who love me and keep my commandments.

References for Exodus 20:6