It is narrated from Sayyiduna Sahl bin Hunayf (may Allah be pleased with him): "The Messenger of Allah (peace and blessings be upon him) used to visit the sick among the poor of Madinah, and when they died he would attend their funerals. He said: A woman from al-Awali (the outlying villages of Madinah) passed away, and the Messenger of Allah (peace and blessings be upon him) had said: 'When her time of death comes, be sure to inform me.' He said: The people came to inform him (peace and blessings be upon him) and found him (peace and blessings be upon him) resting; since the night had passed, they did not think it right to wake him (peace and blessings be upon him), and they also feared for him (peace and blessings be upon him) the darkness of the night and the harmful creatures of the earth, so they buried her. When morning came, he (peace and blessings be upon him) asked about her. The people said: O Messenger of Allah! We came to inform you, but you were resting, so we disliked waking you, and we feared for you the darkness of the night and the crawling creatures of the earth, so we buried her. Hearing this, the Messenger of Allah (peace and blessings be upon him) walked to her grave, then he (peace and blessings be upon him) offered the funeral prayer over her and said four takbirs." Abu Bakr bin Abi Shaybah recorded it, and its narrators are thiqat (trustworthy). And the wording of al-Harith bin Abi Usamah's narration is that Abu Umamah bin Sahl said: Some men from among the Companions of the Messenger of Allah (peace and blessings be upon him) (may Allah be pleased with them) told me: "The Messenger of Allah (peace and blessings be upon him) used to look after the weak and poor Muslims and lead their funeral prayers, and no one other than him (peace and blessings be upon him) would lead the prayer over them. A woman of al-Awali had been ill for a long time, and the Messenger of Allah (peace and blessings be upon him) would ask about her well-being from whoever of her neighbours was present, and he (peace and blessings be upon him) had ordered them that if death came to her they should be sure to tell him (peace and blessings be upon him), so that the Messenger of Allah (peace and blessings be upon him) himself would lead her funeral prayer. That woman passed away at night, so the people carried her and brought her to the place of funerals so that, according to his (peace and blessings be upon him) order, the Messenger of Allah (peace and blessings be upon him) would lead her funeral prayer. But they found the Messenger of Allah (peace and blessings be upon him) asleep, and they did not think it right to rouse him (peace and blessings be upon him) from his sleep; so they offered the funeral prayer themselves, then carried her away and buried her. When morning came, the Messenger of Allah (peace and blessings be upon him) asked her neighbours about that woman, and they told him that she had passed away at night and that they had carried her and also brought her to the place of funerals so that, according to his (peace and blessings be upon him) order, the Messenger of Allah (peace and blessings be upon him) would lead her funeral prayer, but he (peace and blessings be upon him) was resting, so they did not like to wake him from his sleep. He (peace and blessings be upon him) said: 'Why did you do that? Stand up.' So they stood up, and the Messenger of Allah (peace and blessings be upon him) formed a row over her grave just as he used to do over funerals, and the people formed rows behind him (peace and blessings be upon him); then he (peace and blessings be upon him) said four takbirs over her." Imam al-Hakim recorded it, and from him Imam al-Bayhaqi transmitted it in al-Sunan al-Kubra.
Hadith Takhrij«رواه أبو بكر بن أبي شيبة ، ورجاله ثقات» «أخرجه سنن النسائي برقم: 1981، وأخرجه مصنف ابن أبي شيبة برقم: 7، 15، وأخرجه المعجم الكبير للطبراني برقم: 5586، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 3587»