The upper court does not judge the animalistic body whose death does not change anything. This is a judgment on one’s own egoism; a person judges himself and begins to feel that all the past within him must perish in order for him to be reborn and become different.
This is why when he evaluates himself he feels as if he is going through hell. This is written in The Book of Zohar, not in Dante’s poem.
Question: Does it mean that a person determines hell and heaven when he judges himself during his lifetime?
Answer: Of course! He feels his deeds, actions, and qualities like hell and heaven. And if he has not disengaged himself from egoism, then there is no heaven or hell for him. He has nothing to compare either of them with. He is just an animal.
When he breaks away from egoism, he sees his past egoistic states as hell, and his future altruistic connection with the Creator as heaven.
From KabTV’s “Spiritual States” 1/11/22