Sunan an-Nasa'i 1907
It was narrated from Abu Umamah bin Sahl bin Hunaif that:
a poor woman fell sick and the Messenger of Allah was informed of her sickness. The Messenger of Allah used to visit the poor when they were sick and ask about them. The Messnger of Allah said: "If she dies, then inform me." Then her funeral took place at night and they did not like to wake the Messenger of Allah. When morning came, the Messenger of Allah was told what had happened to her. He said: "Did I not tell you to inform me?" They said: "O Messenger of Allah, we did not like to wake you up at night." The Messenger of Allah went out and the people lined up by her grave and he said four Takbirs.
أَخْبَرَنَا قُتَيْبَةُ، فِي حَدِيثِهِ عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ أَبِي أُمَامَةَ بْنِ سَهْلِ بْنِ حُنَيْفٍ، أَنَّهُ أَخْبَرَهُ أَنَّ مِسْكِينَةً مَرِضَتْ فَأُخْبِرَ رَسُولُ اللَّهِ صلى الله عليه وسلم بِمَرَضِهَا وَكَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يَعُودُ الْمَسَاكِينَ وَيَسْأَلُ عَنْهُمْ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ إِذَا مَاتَتْ فَآذِنُونِي ‏"‏ ‏.‏ فَأُخْرِجَ بِجَنَازَتِهَا لَيْلاً وَكَرِهُوا أَنْ يُوقِظُوا رَسُولَ اللَّهِ صلى الله عليه وسلم فَلَمَّا أَصْبَحَ رَسُولُ اللَّهِ صلى الله عليه وسلم أُخْبِرَ بِالَّذِي كَانَ مِنْهَا فَقَالَ ‏"‏ أَلَمْ آمُرْكُمْ أَنْ تُؤْذِنُونِي بِهَا ‏"‏ ‏.‏ قَالُوا يَا رَسُولَ اللَّهِ كَرِهْنَا أَنْ نُوقِظَكَ لَيْلاً ‏.‏ فَخَرَجَ رَسُولُ اللَّهِ صلى الله عليه وسلم حَتَّى صَفَّ بِالنَّاسِ عَلَى قَبْرِهَا وَكَبَّرَ أَرْبَعَ تَكْبِيرَاتٍ ‏.‏