Exodus 34:7

maintaining loving devotion to a thousand generations, forgiving iniquity, transgression, and sin. Yet He will by no means leave the guilty unpunished; He will visit the iniquity of the fathers on their children and grandchildren to the third and fourth generations.”

Note Hebrew to thousands

BSB · Berean Standard Bible
Keeping mercy for thousands, forgiving iniquity and transgression and sin, and that will by no means clear the guilty; visiting the iniquity of the fathers upon the children, and upon the children’s children, unto the third and to the fourth generation.
KJV · King James Version
keeping loving kindness for thousands, forgiving iniquity and disobedience and sin; and who will by no means clear the guilty, visiting the iniquity of the fathers on the children, and on the children’s children, on the third and on the fourth generation.”
WEB · World English Bible
keeping lovingkindness for thousands, forgiving iniquity and transgression and sin; and that will by no means clear the guilty, visiting the iniquity of the fathers upon the children, and upon the children’s children, upon the third and upon the fourth generation.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

Keeping
Exodus 20:6; Deuteronomy 5:10; Nehemiah 1:5; Nehemiah 9:32; Psalm 86:15; Jeremiah 32:18; Daniel 9:4
forgiving
Psalm 103:3; Psalm 130:4; Daniel 9:9; Micah 7:18; Matthew 6:14, 15; Matthew 12:31; Matthew 18:32–35; Luke 7:42, 48; Acts 5:31; Acts 13:38; Romans 4:7, 8; Ephesians 1:7; Ephesians 4:32; 1 John 1:9
that will by no means clear the guilty
The Hebrew {nakkeh lo yenakkeh,} has been rendered "Acquitting him who is not innocent." Nothing can more strongly express the goodness of God to frail mortals than this declaration, "which has been misunderstood and misinterpreted by all our translators."
Exodus 23:7, 21; Numbers 14:18–23; Deuteronomy 32:35; Joshua 24:19; Job 10:14; Psalm 9:16, 17; Psalm 11:5, 6; Psalm 58:10, 11; Psalm 136:10, 15; Isaiah 45:21; Micah 6:11; Nahum 1:2, 3, 6; Romans 2:4–9; Romans 3:19–26; Romans 9:22, 23; Hebrews 12:29; Revelation 20:15; Revelation 21:8
visiting
Exodus 20:5, 6