 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.