If a person in this world follow the ways of the Torah and God with desires to reveal light in the world then after he pass away, his soul is elevated higher to where the souls shine with great light.
The desires in this world are translated in the world above for positive or negative. The desires with negative aspects lead to the path of painful cleansing while the desires for the light lead to a place of greater light and spiritual pleasures.
Rabbi Aba shares that one day he came across a city of people with ancient wisdom. The people told him about their wisdom, showed him their books of wisdom and gave him one book.
In this book he read that the thoughts of a person draw the force that matches his consciousness. If a person seeks holiness, he will draw holy light from above down to his level.