Embarrassment as a Cleansing Agent(Masechet Berachot Daf יב: Perek 1 Siman 169)
(based on Ein Ayah, Berachot I, 169)
Gemara: Whoever sins and is embarrassed is forgiven for all of his sins.
Ein Ayah: When bad things become powerful and are incorporated in the essence of one’s spirit, the sinner is unable to feel any embarrassment because the bad fits in with his lowered self-honor. Therefore, such a corrupt soul is not fit to stand among the holy to see the pleasantness of Hashem, for there is the storehouse of goodness and “evil will not live with You” (Tehillim 5:5).
However, when a person elevates his spirit above the lowliness of corruption, he will be embarrassed by his bad actions and the pain of embarrassment will cause him to more completely despise bad and desire the good he is missing. Even if he is yet to strengthen the good, the bad has already stopped being so naturally entrenched in his spirit. Under such circumstances, his sins are forgiven because the feeling of good embarrassment that is aroused in the spirit spreads to cause him to despise all evil. Therefore, his spirit is already fit to be among the righteous and holy. The remaining evil that clings based on actions must be removed by punishment and affliction, which Hashem will mercifully do, but the root of the spirit will be saved. It is different for a brazen person who knows no embarrassment and for whom evil is an acquired matter. He will not be cleansed like souls that have chance stains of evil. He needs a change in the soul’s nature, for which gehinom (hell) is designed. Therefore, the brazen are set for gehinom and the embarrassed are set for Gan Eden (Avot 5:20) to enjoy Hashem and His goodness.