Exodus 20:5

Amplified Bible (AMP)
You shall not worship them nor serve them; for I, the Lord your God, am a jealous (impassioned) God [[a]demanding what is rightfully and uniquely mine], visiting (avenging) the iniquity (sin, guilt) of the fathers on the children [that is, calling the children to account for the sins of their fathers], to the third and fourth generations of those who hate Me,

Read Exodus 20:5 in other translations