There are passages in the OT that speak to curses being laid upon the third and fourth generation due to one's sins and there are yet other passages that make clear that God does not punish children for the sins of their fathers.
This is Exodus 20:4-6 The second commandment.
"Thou shalt not make unto thee any graven image, or any likeness
of any thing that
is in heaven above, or that
is in the earth beneath, or that
is in the water under the earth:
5Thou shalt not bow down thyself to 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;
6And shewing mercy unto thousands of them that love me, and keep my commandments."
Strong's 5771 translated iniquity defined as:
perversity, (moral) evil, fault, iniquity, mischief, punishment (of iniquity) sin.
I used to think there was comfort in the verse that says "My people are destroyed for lack of knowledge" because God at least calls them His people.....but when you read it....the comfort disappears.
Hosea 4:6
"My people are destroyed for lack of knowledge: because thou hast rejected knowledge, I will also reject thee, that thou shalt be no priest to me: seeing thou hast forgotten the law of thy God, I will also forget thy children."
This takes us back to the most important thing we can teach our children. The greatest commandment. It is good to read the whole chapter of Deut. 6 but here is the heart of it.
4Hear, O Israel: The LORD our God
is one LORD:
5And thou shalt love the LORD thy God with all thine heart, and with all thy soul, and with all thy might.
6And these words, which I command thee this day, shall be in thine heart:
7And thou shalt teach them diligently unto thy children, and shalt talk of them when thou sittest in thine house, and when thou walkest by the way, and when thou liest down, and when thou risest up.
8And thou shalt bind them for a sign upon thine hand, and they shall be as frontlets between thine eyes.
9And thou shalt write them upon the posts of thy house, and on thy gates.
This matters because most human suffering is directly caused by sin, and one can only know sin by the law.
However, sinful and evil people can bring about a curse of their own and pass it on to their kids and future generations.
We just inherit the weaknesses of our ancestors. More is caught then taught as the saying goes. Now we can see that the individual's very DNA is changed by experiences. Our thoughts and actions are recorded right there. Our children literally inherit our strengths and weaknesses. The ability to play music, as well as the tendency towards procrastination.
Abortion is a sad example of the innocent suffering for the sin and indiscretion of the parents. The mercy I see in it is that the poor child doesn't have to live with that inherited indifference toward their own children.
In the end we each choose to believe that either our creator is loving and kind, or ordered a world of chaos and suffering. I choose to believe that He does allow suffering, even of the innocent, yet can and will right the wrongs in His perfect time.
It is written that He will one day wipe away every tear.
Since He can make us all again after our bodies are dust....and is a just judge....the wise still choose to serve Him.