“כֹּל אֲשֶׁר תִּמְצָא יָדְךָ, לַעֲשׂוֹת בְּכֹחֲךָ–עֲשֵׂה: כִּי אֵין מַעֲשֶׂה וְחֶשְׁבּוֹן, וְדַעַת וְחָכְמָה, בִּשְׁאוֹל,אֲשֶׁר אַתָּה הֹלֵךְ שָׁמָּה”
“Whatever your hand finds to do, do it with all your might, for in the realm of the dead, where you are going, there is neither working nor planning (accounting) nor knowledge nor wisdom.”
When we go to sleep we experience the aspect of death. It’s a good time to do personal account of the day’s activities and find where we did wrong and where we could’ve done better.
Making repentance before going to sleep helps the soul in its process and most of the time the soul receives Light of mercy that helps it with soul cleansing.
Those who make efforts to study the Torah, the name of YHVH (Zohar and Kabbalah) and connect to Chokmah are saved from the correction after life in the levels of Sheol. After death they are taken through the gates of Gehinnom to see the sufferings of the wicked to understand their rewards. After that they enter the Garden of Eden to be with the Tzadikim.