Rabbi Chiya opened and said that a man should watch his ways in this world and walk in the path of truth. All the actions of a person are written before the Holy King and registered before him, nothing is missed. The gate keepers stand, testify, and request justice. The judge listens to those who bring claims for their favor but they don’t know if they will send to the right or the left.
The right is the aspect of receiving benefits for their work on this world. The left is the aspect of going to the process of cleansing and continued correction.

When the souls leave this world all advocates and prosecutors are ready to present the good and the bad for each soul.
Everything is counted, words and actions, including judgments a person went through in this world.

The Zohar reveals that the judgments and good we receive in this world is counted in the process of justice the soul goes through when leaving this world.
It’s very important for us to cleanse any negativity we did in this world before leaving it. Any pain should be accepted as a cleansing/payment process to remove any blemish from the soul.
All the good that we have in this world is just a tool to help our soul becomes better. Those who have great wealth and influence are judged for the way they used it. Every gift we have in this world is temporary and an opportunity to do good with it.
The sages tell us that a reward for doing a Mitzvah is another Mitzvah. That means that the good we receive in this world is just opportunity to do more good and reveal greater Light.