عَنْ يَزِيدَ بْنِ ثَابِتٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: خَرَجْنَا مَعَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ فَلَمَّا وَرَدْنَا الْبَقِيعَ إِذَا هُوَ بِقَبْرٍ جَدِيدٍ، فَسَأَلَ عَنْهُ، فَقِيلَ فُلَانَةٌ، فَعَرَفَهَا، فَقَالَ: ((أَلَا أَذِنْتُمُونِي بِهَا؟))، قَالُوا: يَا رَسُولَ اللَّهِ! كُنْتَ قَائِلًا صَائِمًا فَكَرِهْنَا أَنْ نُؤْذِنَكَ، فَقَالَ: ((لَا يَمُوتَنَّ فِيكُمْ مَيِّتٌ مَا كُنْتُ بَيْنَ أَظْهُرِكُمْ إِلَّا أَذِنْتُمُونِي بِهِ فَإِنَّ صَلَاتِي عَلَيْهِ لَهُ رَحْمَةٌ؟))، قَالَ: ثُمَّ أَتَى الْقَبْرَ فَصَفَّنَا خَلْفَهُ وَكَبَّرَ عَلَيْهَا أَرْبَعًا
It is narrated from Sayyiduna Yazid bin Thabit (may Allah be pleased with him), he says: We went out with the Messenger of Allah (peace and blessings be upon him), and when we reached Baqi', the Prophet (peace and blessings be upon him) saw a new grave there and inquired about it. When he (peace and blessings be upon him) was informed that it was the grave of such-and-such woman, he recognized her and then asked: Why did you not inform me about her? The companions said: O Messenger of Allah! You were fasting and resting (taking a siesta), so we did not consider it appropriate to inform you. The Prophet (peace and blessings be upon him) said: (Do not do so,) whenever any one of you passes away and I am present among you, be sure to inform me, because my offering the funeral prayer for any deceased is a mercy for him. Then the Prophet (peace and blessings be upon him) went to her grave, made us stand in rows behind him, and said four takbirs.