Al-Imaam Ibn al-Qayyim - rahimahullaah - said one of the means one can be free from the torment in the grave is that when a person wants to sleep anytime, let him bring his soul to account with respect to what it had lost and gained during the day, then he should renew a sincere repentance for his soul, all this between him and his Lord, so let him sleep upon that repentance. He said: 'Let him repeat this every night.'