You were implying that the evil deity was going to punish future generations for something their ancestors did wrong!
Well, at least you've got it the right way round now, Floo - the ancestor being responsible for the suffering of the descendants - not the other way round. Biblically, 7 is a very important number, and such references may not be literally 7 generations - it might be more or less, but if we look at a less specifically individual case, we can see that the consequences of an act can rumble on for generations. As you will probably know, modern Iraq and Iran were created in the early 20th century by the deployment of a pencil and ruler belonging to a British civil servant (in much the same way as modern-day India and Pakistan were created out of India). There was no consideration for tribal and ethnic boundaries, or location of Shia and Shiite majorities. We continue to see the repercussions today, and Britain suffers as a result. We are now at least 3, if not 4 generations down the line, and I doubt the problems will be solved before the middle of this century (so 6 generations later) - if then.
On a more individual basis, if someone irresponsibly develops a massive debt over their lifetime, it is likely that that person's descendents to several removes will suffer from their irresponsibilities.
Think then of events like the Sea Empress, Exxon Valdes or Deepwater Horizon 'accidents'. How long will nature and (in the Deepwater Horizon's case) the Gulf of Mexico's fishing industry take to fully recover from these events.
Is it punishment that is promised, or is it simply a statement of common sense concerning the time it takes for a family/nation to fully recover from a particular irresponsible action or event?