عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ: ((إِنَّ الْمَيِّتَ تَحْضُرُهُ الْمَلَائِكَةُ، فَإِذَا كَانَ الرَّجُلُ الصَّالِحُ، قَالُوا: اخْرُجِي أَيَّتُهَا النَّفْسُ الطَّيِّبَةُ، كَانَتْ فِي الْجَسَدِ الطَّيِّبِ، اخْرُجِي حَمِيدَةً وَأَبْشِرِي بِرَوْحٍ وَرَيْحَانٍ، وَرَبٍّ غَيْرِ غَضْبَانَ، قَالَ فَلَا يَزَالُ يُقَالُ ذَلِكَ حَتَّى تَخْرُجَ ثُمَّ يُعْرَجُ بِهَا إِلَى السَّمَاءِ، فَيُسْتَفْتَحُ لَهَا فَيُقَالُ مَنْ هَذَا؟ فَيُقَالُ: فُلَانٌ، فَيَقُولُونَ مَرْحَبًا بِالنَّفْسِ الطَّيِّبَةِ كَانَتْ فِي الْجَسَدِ الطَّيِّبِ، ادْخُلِي حَمِيدَةً بِرَوْحٍ وَرَيْحَانٍ وَرَبٍّ غَيْرِ غَضْبَانَ، قَالَ فَلَا يَزَالُ يُقَالُ لَهَا حَتَّى يُنْتَهَى بِهَا إِلَى السَّمَاءِ الَّتِي فِيهَا اللَّهُ عَزَّ وَجَلَّ، وَإِذَا كَانَ الرَّجُلُ السُّوءُ قَالُوا: اخْرُجِي أَيَّتُهَا النَّفْسُ الْخَبِيثَةُ، كَانَتْ فِي الْجَسَدِ الْخَبِيثِ، اخْرُجِي ذَمِيمَةً وَأَبْشِرِي بِحَمِيمٍ وَغَسَّاقٍ، وَآخَرُ مِنْ شَكْلِهِ أَزْوَاجٌ، فَلَا يَزَالُ حَتَّى تَخْرُجَ ثُمَّ يُعْرَجُ بِهَا إِلَى السَّمَاءِ فَيُسْتَفْتَحُ لَهَا، فَيُقَالُ مَنْ هَذَا؟ فَيُقَالُ: فُلَانٌ، فَيُقَالُ: لَا مَرْحَبًا بِالنَّفْسِ الْخَبِيثَةِ كَانَتْ فِي الْجَسَدِ الْخَبِيثِ، ارْجِعِي ذَمِيمَةً فَإِنَّهُ لَا يُفْتَحُ لَكِ أَبْوَابُ السَّمَاءِ فَتُرْسَلُ مِنَ السَّمَاءِ ثُمَّ تَصِيرُ إِلَى الْقَبْرِ، فَيُجْلَسُ الرَّجُلُ الصَّالِحُ، فَيُقَالُ لَهُ مِثْلُ مَا قِيلَ فِي الْحَدِيثِ الْأَوَّلِ وَيُجْلَسُ الرَّجُلُ السُّوءُ، فَيُقَالُ لَهُ مِثْلُ مَا فِي الْحَدِيثِ الْأَوَّلِ))
It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: When the time of a man's death approaches, angels come to him. If he is a righteous man, they say: O pure soul, which was in a pure body, come out, come forth, you are praiseworthy, glad tidings of comfort and fragrances are for you, your Lord is not displeased with you. They keep repeating these words until the soul comes out. Then it is taken up towards the sky and the gate of the sky is opened for it. It is asked: Who is this? The angels reply: This is so-and-so. The angels of the sky say: Welcome to the pure soul, which was in a pure body. (O soul!) You are praiseworthy, come forth, and glad tidings of comforts and fragrances and of such a Lord who is not displeased with you. The same is said to it at every sky, until it is taken to the sky where Allah Almighty is.
And if the dying person is evil (a sinner), the angels say: Come out, O wicked soul, which was in a wicked body, come out, you are blameworthy, glad tidings of boiling water, pus, and other such things are for you. These words are repeated until the soul comes out. The angels take it up towards the sky and the gate of the sky is opened for it. It is asked: Who is this? The angels say: This is so-and-so. The angels of the sky say: Wicked soul, which was in a wicked body, there is no welcome for it. (O soul!) You are blameworthy, go back, the gates of the sky will not be opened for you. It is thrown down from the sky and it reaches the grave. The righteous man is made to sit and those things are said to him which have been mentioned in the previous hadith, and the sinner is also made to sit and those things are said to him which have been mentioned in the previous hadith.