وَحَدَّثَنِي عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ أَبِي أُمَامَةَ بْنِ سَهْلِ بْنِ حُنَيْفٍ، أَنَّهُ أَخْبَرَهُ أَنَّ مِسْكِينَةً مَرِضَتْ فَأُخْبِرَ رَسُولُ اللَّهِ صلى الله عليه وسلم - بِمَرَضِهَا وَكَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يَعُودُ الْمَسَاكِينَ وَيَسْأَلُ عَنْهُمْ - فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ إِذَا مَاتَتْ فَآذِنُونِي بِهَا ‏"‏ ‏.‏ فَخُرِجَ بِجَنَازَتِهَا لَيْلاً فَكَرِهُوا أَنْ يُوقِظُوا رَسُولَ اللَّهِ صلى الله عليه وسلم فَلَمَّا أَصْبَحَ رَسُولُ اللَّهِ صلى الله عليه وسلم أُخْبِرَ بِالَّذِي كَانَ مِنْ شَأْنِهَا فَقَالَ ‏"‏ أَلَمْ آمُرْكُمْ أَنْ تُؤْذِنُونِي بِهَا ‏"‏ ‏.‏ فَقَالُوا يَا رَسُولَ اللَّهِ كَرِهْنَا أَنْ نُخْرِجَكَ لَيْلاً وَنُوقِظَكَ ‏.‏ فَخَرَجَ رَسُولُ اللَّهِ صلى الله عليه وسلم حَتَّى صَفَّ بِالنَّاسِ عَلَى قَبْرِهَا وَكَبَّرَ أَرْبَعَ تَكْبِيرَاتٍ ‏.‏

Yahya related to me from Malik from Ibn Shihab that Abu Umama ibnSahl ibn Hunayf told him that once a poor woman fell ill and theMessenger of Allah, may Allah bless him and grant him peace, was toldof her illness, and the Messenger of Allah, may Allah bless him andgrant him peace, used to visit poor people frequently and ask afterthem. 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, mayAllah bless him and grant him peace. In the morning the Messenger ofAllah, may Allah bless him and grant him peace, was told what hadhappened to her and he said, "Didn't I tell you to let me know if shedied?" They replied, "Messenger of Allah, we did not want to wake youup 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 everyoneinto rows by her grave and said "Allah is greater" four times. Translation Not Available

Book Ref: Muwatta Imam Malik Book 16 Hadith 537
Web Ref:  Muwatta Imam Malik Book 16 Hadith 15