It was narrated from Abu Huraira that the Prophet P.B.U.H said: Angels come to the dying person, and if the man was righteous, they say ‘Come out, 0 good soul that was in a good body,come out praiseworthy and glad tidings of mercy ‘and fragrance and a Lord Who is not Angry.' And this is repeated until it comes out, then it is taken heaven, and it is opened for is asked: ‘Who is this?’‘So-and-so.’ It is said: to the good soul that a good body. Enter praiseworthy and receive the glad mercy and fragrance and a Lord Who is not angry.’ is repeated until it is brought to the heaven above which is Allah. But if the man was evil, they say: ‘Come out 0 Evil soul that was in an evil body. Come out blameworthy, and recieve the tidings of boiling water and the discharge of dirty wounds,' and other torments of similar kind, all together. And it is asked: 'Who is this? It is said: 'so-and-so'. And it is said: No welcome to the evil body.Go back blameworthy, for the gates of heaven will not be opened to you.' So it is sent back down from heaven,then it goes to the grave.” (Sahih)