This sinful son might have a son who observed his father"s behavior and chose to follow the example of his righteous grandfather rather than that of his unrighteous father. He refrained from the same evil practices and engaged in the same forms of goodness. That man would surely live for his righteousness whereas his father would die for his wickedness. Wicked parents do not necessarily produce wicked children because the children can choose to do right. The Israelites had illustrations of this alternation of good and evil individuals in succeeding generations even in the royal family. King Hezekiah, for example, was good, his son Manasseh was bad, and Manasseh"s grandson Josiah was good. [source][source][source]
". . . in this world God does indeed punish entire groups for the sins that they as groups commit, even when some members of the group may be innocent. Such groups are often nations, cities, or other political entities, but they may also be societal groups such as priests or prophets, or economic groups such as businesses or trade guilds, or such voluntary associations as churches." [1][source]