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.