عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ رَضِيَ اللَّهُ عَنْهُ قَالَ: لَمَّا قَدِمَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ كُنَّا نُؤْذِنُهُ لِمَنْ حُضِرَ مِنْ مَوْتَانَا فَيَأْتِيهِ قَبْلَ أَنْ يَمُوتَ، فَيَحْضُرُهُ وَيَسْتَغْفِرُ لَهُ وَيَنْتَظِرُ مَوْتَهُ، قَالَ فَكَانَ ذَلِكَ رُبَّمَا حَبَسَهُ الْحَبْسَ الطَّوِيلَ فَشَقَّ عَلَيْهِ، قَالَ: فَقُلْنَا: أَرْفَقُ بِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ أَنْ لَا نُؤْذِنَهُ بِالْمَيِّتِ حَتَّى يَمُوتَ، قَالَ: فَكُنَّا إِذَا مَاتَ مِنَّا الْمَيِّتُ، أَذَنَّاهُ بِهِ فَجَاءَ فِي أَهْلِهِ فَاسْتَغْفَرَ لَهُ وَصَلَّى عَلَيْهِ، ثُمَّ إِنْ بَدَا لَهُ أَنْ يَشْهَدَهُ، انْتَظَرَ شُهُودَهُ وَإِنْ بَدَا لَهُ أَنْ يَنْصَرِفَ انْصَرَفَ، قَالَ: فَكُنَّا عَلَى ذَلِكَ طَبَقَةً أُخْرَى، قَالَ: فَقُلْنَا: أَرْفَقُ بِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ أَنْ نَحْمِلَ مَوْتَانَا إِلَى بَيْتِهِ وَلَا نُشْخِصَهُ وَلَا نُعَنِّيَهُ، قَالَ: فَقُلْنَا ذَلِكَ فَكَانَ الْأَمْرُ
Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) says: When the Messenger of Allah (peace and blessings be upon him) migrated and arrived in Madinah Munawwarah, whenever the time of death of any person among us approached, we would inform the Messenger of Allah (peace and blessings be upon him), and he (peace and blessings be upon him) would arrive before the person's death and would stay by his side, continuously supplicating for his forgiveness and waiting for his passing. Sometimes, this would take quite a long time and it would become difficult for the Messenger of Allah (peace and blessings be upon him). After that, we thought that it would be better if we did not inform the Messenger of Allah (peace and blessings be upon him) before the death. So, thereafter, it would happen that when someone among us passed away, only then would we inform the Messenger of Allah (peace and blessings be upon him). Then, the Messenger of Allah (peace and blessings be upon him) would come to the family of the deceased, supplicate for his forgiveness, and lead the funeral prayer. After that, if he deemed it appropriate, he would stay until the burial, and if he deemed it appropriate, he would leave earlier. Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) says: This method continued for some time, then we decided that it would be easier for the Messenger of Allah (peace and blessings be upon him) if we brought the deceased to the house of the Messenger of Allah (peace and blessings be upon him) and did not make him leave his house, nor cause him the inconvenience of coming to the house of the deceased's family.