Sunan an-Nasa'i, Volume 3, Book 21, Hadith 1971 (DarusSalam)

Abu Umamah bin Sahl bin Hunaif said: "A poor woman in Al-Awali fell sick and the Prophet used to ask them about her. He said: 'If she dies, do not bury her until I have offered the funeral prayer for her. She died and they brought her to Al-Madinah after dark, and they found that the Messenger of Allah had gone to sleep. They did not like to wake him up, so they offered the funeral prayer for her and buried her in Baqi' Al-Gharqab. The next morning they came and the Messenger of Allah asked them about her. They said: 'She has been buried, O Messenger of Allah. We came to you and found you sleeping, and we did not like to wake you up.' He said: 'let's go.' He set out walking and they went with him and showed him her grave. The Messenger of Allah stood and they formed rows behind him, and he offered the funeral prayer for her, saying the Takbir four times."

أَخْبَرَنَا يُونُسُ بْنُ عَبْدِ الأَعْلَى، قَالَ أَنْبَأَنَا ابْنُ وَهْبٍ، قَالَ حَدَّثَنِي يُونُسُ، عَنِ ابْنِ شِهَابٍ، قَالَ أَخْبَرَنِي أَبُو أُمَامَةَ بْنُ سَهْلِ بْنِ حُنَيْفٍ، أَنَّهُ قَالَ اشْتَكَتِ امْرَأَةٌ بِالْعَوَالِي مِسْكِينَةٌ فَكَانَ النَّبِيُّ صلى الله عليه وسلم يَسْأَلُهُمْ عَنْهَا وَقَالَ ‏"‏ إِنْ مَاتَتْ فَلاَ تَدْفِنُوهَا حَتَّى أُصَلِّيَ عَلَيْهَا ‏"‏ ‏.‏ فَتُوُفِّيَتْ فَجَاءُوا بِهَا إِلَى الْمَدِينَةِ بَعْدَ الْعَتَمَةِ فَوَجَدُوا رَسُولَ اللَّهِ صلى الله عليه وسلم قَدْ نَامَ فَكَرِهُوا أَنْ يُوقِظُوهُ فَصَلُّوا عَلَيْهَا وَدَفَنُوهَا بِبَقِيعِ الْغَرْقَدِ فَلَمَّا أَصْبَحَ رَسُولُ اللَّهِ صلى الله عليه وسلم جَاءُوا فَسَأَلَهُمْ عَنْهَا فَقَالُوا قَدْ دُفِنَتْ يَا رَسُولَ اللَّهِ وَقَدْ جِئْنَاكَ فَوَجَدْنَاكَ نَائِمًا فَكَرِهْنَا أَنْ نُوقِظَكَ ‏.‏ قَالَ ‏"‏ فَانْطَلِقُوا ‏"‏ ‏.‏ فَانْطَلَقَ يَمْشِي وَمَشَوْا مَعَهُ حَتَّى أَرَوْهُ قَبْرَهَا فَقَامَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَصَفُّوا وَرَاءَهُ فَصَلَّى عَلَيْهَا وَكَبَّرَ أَرْبَعًا ‏.‏

sunnah.com