@Mum
Exodus 20:5-6: You shall not bow down to them or worship them; for I, the Lord your God, am a jealous God, punishing the children for the sin of the parents to the third and fourth generation of those who hate me, but showing love to a thousand generations of those who love me and keep my commandments.
No, it's not the bad parenting of the parents being passed down. It specifically states god will punish the children for the sin of the parent to the third and fourth generation.
it also says he'd show love to a thousand genertions of those who love him. So how does that work? What if your mother's father loved god, but your father's father sinned against him? Does god punish you half the time and show love to you the other half?