Muwatta Malik, Book 16, Hadith 15 (USC-MSA) ⓘ
Yahya related to me from Malik from Ibn Shihab that Abu Umama ibn Sahl ibn Hunayf told him that once a poor woman fell ill and the Messenger of Allah, may Allah bless him and grant him peace, was told of her illness, and the Messenger of Allah, may Allah bless him and grant him peace, used to visit poor people frequently and ask after them. The Messenger of Allah, may Allah bless him and grant him peace, said, "Let me know if she dies." Her bier was brought out at night- time and they did not want to wake up the Messenger of Allah, may Allah bless him and grant him peace. In the morning the Messenger of Allah, may Allah bless him and grant him peace, was told what had happened to her and he said, "Didn't I tell you to let me know if she died?" They replied, "Messenger of Allah, we did not want to wake you up and make you come out in the night." Then the Messenger of Allah, may Allah bless him and grant him peace, went out and formed everyone into rows by her grave and said "Allah is greater" four times.
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ أَبِي أُمَامَةَ بْنِ سَهْلِ بْنِ حُنَيْفٍ، أَنَّهُ أَخْبَرَهُ أَنَّ مِسْكِينَةً مَرِضَتْ فَأُخْبِرَ رَسُولُ اللَّهِ صلى الله عليه وسلم - بِمَرَضِهَا وَكَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يَعُودُ الْمَسَاكِينَ وَيَسْأَلُ عَنْهُمْ - فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " إِذَا مَاتَتْ فَآذِنُونِي بِهَا " . فَخُرِجَ بِجَنَازَتِهَا لَيْلاً فَكَرِهُوا أَنْ يُوقِظُوا رَسُولَ اللَّهِ صلى الله عليه وسلم فَلَمَّا أَصْبَحَ رَسُولُ اللَّهِ صلى الله عليه وسلم أُخْبِرَ بِالَّذِي كَانَ مِنْ شَأْنِهَا فَقَالَ " أَلَمْ آمُرْكُمْ أَنْ تُؤْذِنُونِي بِهَا " . فَقَالُوا يَا رَسُولَ اللَّهِ كَرِهْنَا أَنْ نُخْرِجَكَ لَيْلاً وَنُوقِظَكَ . فَخَرَجَ رَسُولُ اللَّهِ صلى الله عليه وسلم حَتَّى صَفَّ بِالنَّاسِ عَلَى قَبْرِهَا وَكَبَّرَ أَرْبَعَ تَكْبِيرَاتٍ .
also referenced under: Book 16, Hadith 537 (In-Book)