Deuteronomy 5:9-10

KJV(i) 9 Thou shalt not bow down thyself unto them, nor serve them: for I the LORD thy God am a jealous God, visiting the iniquity of the fathers upon the children unto the third and fourth generation of them that hate me, 10 And showing mercy unto thousands of them that love me and keep my commandments.