IBNHIBBAN 3006:
from Abū Saʿīd al-Khudrī —
[Machine] We used to be the ones who would inform the Messenger of Allah ﷺ when a deceased person was brought before him. He would then come and seek forgiveness for the deceased until they were buried. Once the burial was complete, the Messenger of Allah ﷺ and those with him would depart. Sometimes, the delay in the departure of the Messenger of Allah ﷺ was prolonged. When we became concerned about the burden of waiting, some people said to each other, "By Allah, if we do not inform the Messenger of Allah ﷺ about someone's death until after the burial, it will not cause any hardship or inconvenience for him." They then proceeded to act upon this and began to inform him only after the burial had taken place. Thereafter, he would come, offer the prayer for the deceased, and seek forgiveness for them. Sometimes he would depart immediately afterwards, and sometimes he would stay until the deceased was buried." The narrator then added, "We continued in this manner for some time. Then we said, 'By Allah, if we do not inform the Messenger of Allah ﷺ and carry our deceased to him until he offers the funeral prayer at their graveside, it would be even more compassionate and easier for the Messenger of Allah ﷺ .' We then began to do this. And this practice has continued to this day."
ابن حبّان ٣٠٠٦:
عن ابو سعيد الخدري —
«كُنَّا مَقْدَمَ رَسُولَ اللَّهِ ﷺ إِذَا حُضِرَ الْمَيِّتُ آذَنَّاهُ فَحَضَرَهُ وَاسْتَغْفَرَ لَهُ حَتَّى يُقْبَضَ فَإِذَا قُبِضَ انْصَرَفَ رَسُولُ اللَّهِ ﷺ وَمَنْ مَعَهُ فَرُبَّمَا طَالَ ذَلِكَ مِنْ حَبْسِ رَسُولِ اللَّهِ ﷺ فَلَمَّا خَشِينَا مَشَقَّةَ ذَلِكَ قَالَ بَعْضُ الْقَوْمِ لِبَعْضٍ وَاللَّهِ لَوْ كُنَّا لَا نُؤْذِنُ رَسُولَ اللَّهِ ﷺ بِأَحَدٍ حَتَّى يُقْبَضَ فَإِذَا قُبِضَ آذَنَّاهُ فَلَمْ يَكُنْ فِي ذَلِكَ مَشَقَّةٌ عَلَيْهِ وَلَا حَبْسٌ قَالَ فَفَعَلْنَا فَكُنَّا لَا نُؤْذِنُهُ إِلَّا بَعْدَ أَنْ يَمُوتَ فَيَأْتِيهِ فَيُصَلِّي عَلَيْهِ وَيَسْتَغْفِرُ لَهُ فَرُبَّمَا انْصَرَفَ عِنْدَ ذَلِكَ وَرُبَّمَا مَكَثَ حَتَّى يُدْفَنَ الْمَيِّتُ» قَالَ «وَكُنَّا عَلَى ذَلِكَ حِينًا ثُمَّ قُلْنَا وَاللَّهِ لَوْ أَنَّا لَا نُحْضِرُ رَسُولَ اللَّهِ ﷺ وَحَمَلْنَا إِلَيْهِ جَنَائِزَ مَوْتَانَا حَتَّى يُصَلِّيَ عَلَيْهَا عِنْدَ بَيْتِهِ لَكَانَ ذَلِكَ أَرْفَقَ بِرَسُولِ اللَّهِ ﷺ وَأَيْسَرَ عَلَيْهِ فَفَعَلْنَا ذَلِكَ فَكَانَ الْأَمْرُ إِلَى الْيَوْمِ»
hadithunlocked.com