Exodus 20:5shillesh
You must not worship or serve any idol, because I, the Lord your God, am a jealous God. If you hate me, I will punish your children, and even your grandchildren and great-grandchildren.
Ten Commandments: punishment for idol worship reaching to great-grandchildren.
Exodus 34:7shillesh
and is kind to thousands of people. The Lord forgives people for evil, for sin, and for turning against him, but he does not forget to punish guilty people. He will punish not only the guilty people, but also their children, their grandchildren, their great-grandchildren, and their great-great-grandchildren."
God's self-description pairs forgiveness with punishment reaching later generations.
Numbers 14:18shillesh
'The Lord doesn't become angry quickly, but he has great love. He forgives sin and law breaking. But the Lord never forgets to punish guilty people. When parents sin, he will also punish their children, their grandchildren, their great-grandchildren, and their great-great-grandchildren.'
Moses repeats God's words: slow to anger, yet punishing to later generations.
Deuteronomy 5:9shillesh
You must not worship or serve any idol, because I, the Lord your God, am a jealous God. If people sin against me and hate me, I will punish their children, even their grandchildren and great-grandchildren.
The commandment against idols restated, naming great-grandchildren.
Job 42:16
After this, Job lived one hundred forty years. He lived to see his children, grandchildren, great-grandchildren, and great-great-grandchildren.
Job's long life lets him see great-grandchildren, a sign of blessing.