It is a basic dictum of justice that as individuals we are responsible for our own actions. Even if your closest relative commits a crime, s/he will go to jail for it, not you, unless you had a role in it. This is an idea of justice that is seen even in religious notions of sin. We pay for our own sins, or earn rewards for our individual virtues, in the Christian, Muslim, Hindu and Buddhist moral universes. There are however stories of collective punishment such as the Great Flood and the destruction of Sodom and Gomorrah to be found in the Old Testament.