The hadeeth of Imaam Ahmad (may Allaah have mercy on him) from al-Bara’ ibn ‘Aazib who said:
“We went out with the Prophet (SulAllahu 'alayhi wassalaam) for the funeral of a man from among the Ansaar, and we reached the grave whilst it was still being dug. The Messenger of Allaah (sulAllahu 'alayhi wassalaam) sat down and we sat down around him, and it was as if we had birds on our heads. In his hand was a stick with which he was scratching in the earth. He raised his head and said, ‘Seek refuge with Allaah from the punishment of the grave,’ two or three times. Then he said:
‘Verily, when the believing slave is about to depart this world and enter the Hereafter, there come down to him angels from heaven with white faces, as if their faces are the sun. They bring with them one of the shrouds of Paradise and some of the perfume of Paradise. They sit with him as far as the eye can see. Then the Angel of Death (peace be upon him) comes to him and sits by his head and says, ‘O pure soul, come out to the forgiveness and pleasure of Allaah.’ Then his soul comes flowing out like a drop of water flowing from a cup. Then he takes the soul, and no sooner does he seize it but they take it and place it in that shroud and perfume. Then out of it comes the most excellent fragrance of musk to be found on the face of the earth. Then they ascend with it and they do not pass by any group of angels but the angels ask, ‘Who is this pure soul?’ and they reply, ‘It is So and so the son of So and so’ – using the best names by which he was known on earth. Then they bring it to the lowest heaven, and ask for it to be opened, and it is opened for him. Those who are of high rank in each heaven accompany it until they approach the next heaven, and so it goes until it reaches the seventh heaven. Then Allaah, may He be glorified and exalted, says: ‘Record the book of My slave in ‘Illiyoon (the highest heaven) and take him back to the earth, for I created them from it, and I shall return them to it, then I shall take them out from it again.’ Then his soul is returned to his body and two angels come and make him sit up, and ask him, ‘Who is your Lord.’ He says, ‘Allaah.’ They ask, ‘What is your religion?’ He says, ‘My religion is Islam.’ They ask, ‘Who is this man that was sent amongst you?’ He says, ‘He is the Messenger of Allaah (peace and blessings of Allaah be upon him.’ They ask him, ‘What knowledge do you have?’ He says, 'I read the Book of Allaah and I believed in it.’ Then a voice will call out from heaven, ‘My slave has spoken the truth. Prepare for him a bed from Paradise and give him clothes from Paradise, and open for him a door to Paradise.’ And he will feel its breeze and smell its fragrance, and his grave will be widened for him as far as his eye can see. Then a man with a handsome face, beautiful clothes and a pleasant fragrance will come to him and say, ‘Good news! This is the day that you were promised.’ He will say, ‘Who are you? You face looks as if it brings good news.’ He will say, 'I am your good deeds.’ (The deceased) will say, ‘O Lord, let the Hour come so that I may see my family and my wealth again.’
When the disbelieving slave is about to depart this world and enter the Hereafter, there come down to him angels from heaven with black faces, bringing with them sackcloth. They sit with him as far as the eye can see. Then the Angel of Death comes to him and sits by his head and says, ‘O evil soul, come out to the wrath and anger of Allaah.’ Then his soul disperses in his body and is dragged out like a skewer being pulled out of wet wool. Then he takes the soul, and no sooner does he seize it but they take it and place it in that sackcloth. Then out of it comes the most putrid stench of rotten flesh to be found on the face of the earth. Then they ascend with it and they do not pass by any group of angels but the angels ask, ‘Who is this evil soul?’ and they reply, ‘It is So and so the son of So and so’ – using the worst names by which he was known on earth. Then they bring it to the lowest heaven, and ask for it to be opened, and it is not opened for him.” Then the Messenger of Allaah (peace and blessings of Allaah be upon him) recited (interpretation of the meaning): “… For them the gates of heaven will not be opened, and they will not enter Paradise until the camel goes through the eye of the needle” [al-A’raaf 7:40]. Then he said, “Then Allaah, may He be glorified and exalted, says: ‘Record the book of My slave in Sijjeen (the lowest Hell) in the lowest earth. Then his soul is cast down.” Then he recited (interpretation of the meaning): “… and whoever assigns partners to Allaah, it is as if he had fallen from the sky, and the birds had snatched him, or the wind had thrown him to a far off place.” [al-Hajj 22:31]. He said, “Then his soul is returned to his body and two angels come and make him sit up, and ask him, ‘Who is your Lord.’ He says, ‘Oh, oh, I don’t know.’ They ask, ‘What is your religion?’ He says, ‘Oh, oh, I don’t know.’ They ask, ‘Who is this man that was sent amongst you?’ He says, ‘Oh, oh, I don’t know.’ Then a voice will call out from heaven, ‘He is lying. Prepare for him a bed from Hell and open for him a door to Hell.’ And he will feel its hot winds and smell its stench, and his grave will be constricted for him until his ribs interlock. Then a man with an ugly face, ugly clothes and a horrible stench will come to him and say, ‘Bad news! This is the day that you were warned about.’ He will say, ‘Who are you? You face looks as if it brings bad news.’ He will say, 'I am your evil deeds.’ (The deceased) will say, ‘O Lord, do not let the Hour come!’”
(Musnad al-Imaam Ahmad, 17803; this is a saheeh hadeeth).
“We went out with the Prophet (SulAllahu 'alayhi wassalaam) for the funeral of a man from among the Ansaar, and we reached the grave whilst it was still being dug. The Messenger of Allaah (sulAllahu 'alayhi wassalaam) sat down and we sat down around him, and it was as if we had birds on our heads. In his hand was a stick with which he was scratching in the earth. He raised his head and said, ‘Seek refuge with Allaah from the punishment of the grave,’ two or three times. Then he said:
‘Verily, when the believing slave is about to depart this world and enter the Hereafter, there come down to him angels from heaven with white faces, as if their faces are the sun. They bring with them one of the shrouds of Paradise and some of the perfume of Paradise. They sit with him as far as the eye can see. Then the Angel of Death (peace be upon him) comes to him and sits by his head and says, ‘O pure soul, come out to the forgiveness and pleasure of Allaah.’ Then his soul comes flowing out like a drop of water flowing from a cup. Then he takes the soul, and no sooner does he seize it but they take it and place it in that shroud and perfume. Then out of it comes the most excellent fragrance of musk to be found on the face of the earth. Then they ascend with it and they do not pass by any group of angels but the angels ask, ‘Who is this pure soul?’ and they reply, ‘It is So and so the son of So and so’ – using the best names by which he was known on earth. Then they bring it to the lowest heaven, and ask for it to be opened, and it is opened for him. Those who are of high rank in each heaven accompany it until they approach the next heaven, and so it goes until it reaches the seventh heaven. Then Allaah, may He be glorified and exalted, says: ‘Record the book of My slave in ‘Illiyoon (the highest heaven) and take him back to the earth, for I created them from it, and I shall return them to it, then I shall take them out from it again.’ Then his soul is returned to his body and two angels come and make him sit up, and ask him, ‘Who is your Lord.’ He says, ‘Allaah.’ They ask, ‘What is your religion?’ He says, ‘My religion is Islam.’ They ask, ‘Who is this man that was sent amongst you?’ He says, ‘He is the Messenger of Allaah (peace and blessings of Allaah be upon him.’ They ask him, ‘What knowledge do you have?’ He says, 'I read the Book of Allaah and I believed in it.’ Then a voice will call out from heaven, ‘My slave has spoken the truth. Prepare for him a bed from Paradise and give him clothes from Paradise, and open for him a door to Paradise.’ And he will feel its breeze and smell its fragrance, and his grave will be widened for him as far as his eye can see. Then a man with a handsome face, beautiful clothes and a pleasant fragrance will come to him and say, ‘Good news! This is the day that you were promised.’ He will say, ‘Who are you? You face looks as if it brings good news.’ He will say, 'I am your good deeds.’ (The deceased) will say, ‘O Lord, let the Hour come so that I may see my family and my wealth again.’
When the disbelieving slave is about to depart this world and enter the Hereafter, there come down to him angels from heaven with black faces, bringing with them sackcloth. They sit with him as far as the eye can see. Then the Angel of Death comes to him and sits by his head and says, ‘O evil soul, come out to the wrath and anger of Allaah.’ Then his soul disperses in his body and is dragged out like a skewer being pulled out of wet wool. Then he takes the soul, and no sooner does he seize it but they take it and place it in that sackcloth. Then out of it comes the most putrid stench of rotten flesh to be found on the face of the earth. Then they ascend with it and they do not pass by any group of angels but the angels ask, ‘Who is this evil soul?’ and they reply, ‘It is So and so the son of So and so’ – using the worst names by which he was known on earth. Then they bring it to the lowest heaven, and ask for it to be opened, and it is not opened for him.” Then the Messenger of Allaah (peace and blessings of Allaah be upon him) recited (interpretation of the meaning): “… For them the gates of heaven will not be opened, and they will not enter Paradise until the camel goes through the eye of the needle” [al-A’raaf 7:40]. Then he said, “Then Allaah, may He be glorified and exalted, says: ‘Record the book of My slave in Sijjeen (the lowest Hell) in the lowest earth. Then his soul is cast down.” Then he recited (interpretation of the meaning): “… and whoever assigns partners to Allaah, it is as if he had fallen from the sky, and the birds had snatched him, or the wind had thrown him to a far off place.” [al-Hajj 22:31]. He said, “Then his soul is returned to his body and two angels come and make him sit up, and ask him, ‘Who is your Lord.’ He says, ‘Oh, oh, I don’t know.’ They ask, ‘What is your religion?’ He says, ‘Oh, oh, I don’t know.’ They ask, ‘Who is this man that was sent amongst you?’ He says, ‘Oh, oh, I don’t know.’ Then a voice will call out from heaven, ‘He is lying. Prepare for him a bed from Hell and open for him a door to Hell.’ And he will feel its hot winds and smell its stench, and his grave will be constricted for him until his ribs interlock. Then a man with an ugly face, ugly clothes and a horrible stench will come to him and say, ‘Bad news! This is the day that you were warned about.’ He will say, ‘Who are you? You face looks as if it brings bad news.’ He will say, 'I am your evil deeds.’ (The deceased) will say, ‘O Lord, do not let the Hour come!’”
(Musnad al-Imaam Ahmad, 17803; this is a saheeh hadeeth).