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 ﷺ was told of her illness, and the Messenger of Allah ﷺ used to visit poor people frequently and ask after them. The Messenger of Allah ﷺ 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 ﷺ. In the morning the Messenger of Allah ﷺ 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 ﷺ went out and formed everyone into rows by her grave and said "Allah is greater" four times.
أَنَّهُ أَخْبَرَهُ أَنَّ مِسْكِينَةً مَرِضَتْ فَأُخْبِرَ رَسُولُ اللَّهِ ﷺ بِمَرَضِهَا وَكَانَ رَسُولُ اللَّهِ ﷺ يَعُودُ الْمَسَاكِينَ وَيَسْأَلُ عَنْهُمْ فَقَالَ رَسُولُ اللَّهِ ﷺ إِذَا مَاتَتْ فَآذِنُونِي بِهَا فَخُرِجَ بِجَنَازَتِهَا لَيْلاً فَكَرِهُوا أَنْ يُوقِظُوا رَسُولَ اللَّهِ ﷺ فَلَمَّا أَصْبَحَ رَسُولُ اللَّهِ ﷺ أُخْبِرَ بِالَّذِي كَانَ مِنْ شَأْنِهَا فَقَالَ أَلَمْ آمُرْكُمْ أَنْ تُؤْذِنُونِي بِهَا فَقَالُوا يَا رَسُولَ اللَّهِ كَرِهْنَا أَنْ نُخْرِجَكَ لَيْلاً وَنُوقِظَكَ فَخَرَجَ رَسُولُ اللَّهِ ﷺ حَتَّى صَفَّ بِالنَّاسِ عَلَى قَبْرِهَا وَكَبَّرَ أَرْبَعَ تَكْبِيرَاتٍ