According to Islam...
According to Islam, a person will be judged according to his or her life's actions. People whose deeds and actions in life are mainly good will enter Heaven (also called Garden or Paradise). However, if one's deeds or actions are mainly evil, he or she will enter Hell (also referred to as Fire). On the Day of Judgment, everyone will know the fate of everyone else. Both Heaven and Hell have different levels.
The worst of people will be in the lowest depths of Hell, while the best of people will be in the highest parts of Heaven. Death and Life After Death Through religious doctrine, humanity has been shown a glimpse of what we experience at the moment of death and life after death. The Quran reveals some of the secrets surrounding the soul: It is Allah who takes away the souls at the time of their death, and those that die not during their sleep.
He keeps those souls for which He has ordained death and sends the rest for a term appointed. Verily, in this are signs for people who think deeply. (39:42) And they ask you concerning the spirit.
Say: “The spirit, it is one of the things, the knowledge of which is only with my Lord, and of knowledge, you mankind have been given only a little.” (17:85) For the believers, the departure of the soul will be peaceful: It will be said to the pious: “O you in complete rest and satisfaction, come back to your Lord well-pleased yourself and well-pleasing unto Him.
Enter then among my honored servants, and enter my Paradise.” (89:27-30) The Quran reveals that a person who is near death will become aware that he or she is going to die. For those people who are destined for Hell, the parting of the soul will be accompanied by severe pain. The moment of death has been described in the Quran: Nay!
And the stupor of death will come in truth; this is what you have been avoiding.