According to aggadic passages in the Talmud, God judges who has followed His commandments and who does not and to what extent. Those who do not "pass the test" go to a purifying place (sometimes referred to as "Gehinnom", i. e., Hell, but more analogous to the Christian Purgatory) to "learn their lesson". There is, however, for the most part, no eternal damnation. The vast majority of souls only go to that reforming place for a limited amount of time (less than one year). Certain categories are spoken of as having "no part in the world to come", but this appears to mean annihilation rather than an eternity of torment.