Offering the funeral prayer at the grave Sunan Ibn Majah 1528

Arabic hadith text
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا هُشَيْمٌ، حَدَّثَنَا عُثْمَانُ بْنُ حَكِيمٍ، حَدَّثَنَا خَارِجَةُ بْنُ زَيْدِ بْنِ ثَابِتٍ، عَنْ يَزِيدَ بْنِ ثَابِتٍ، وَكَانَ، أَكْبَرَ مِنْ زَيْدٍ قَالَ خَرَجْنَا مَعَ النَّبِيِّ ـ صلى الله عليه وسلم ـ فَلَمَّا وَرَدَ الْبَقِيعَ فَإِذَا هُوَ بِقَبْرٍ جَدِيدٍ فَسَأَلَ عَنْهُ فَقَالُوا فُلاَنَةُ ‏.‏ قَالَ فَعَرَفَهَا وَقَالَ ‏"‏ أَلاَ آذَنْتُمُونِي بِهَا ‏"‏ ‏.‏ قَالُوا كُنْتَ قَائِلاً صَائِمًا فَكَرِهْنَا أَنْ نُؤْذِيَكَ ‏.‏ قَالَ ‏"‏ فَلاَ تَفْعَلُوا لاَ أَعْرِفَنَّ مَا مَاتَ فِيكُمْ مَيِّتٌ مَا كُنْتُ بَيْنَ أَظْهُرِكُمْ إِلاَّ آذَنْتُمُونِي بِهِ فَإِنَّ صَلاَتِي عَلَيْهِ لَهُ رَحْمَةٌ ‏"‏ ‏.‏ ثُمَّ أَتَى الْقَبْرَ فَصَفَّنَا خَلْفَهُ فَكَبَّرَ عَلَيْهِ أَرْبَعًا
Translation
Kharijahbin Zaid bin Thabit narrated that Yazid bin Thabit, who wasolderthan Zaid, said

“We went out with the Prophet (ﷺ) and when wereached Al-Baqi’, we saw a new grave. He asked about it and theysaid:‘(It is) so-and-so (a woman).’ He recognized the name andsaid: ‘Whydid you not tell me about her?’ They said: ‘You weretaking a nap andyou were fasting, and we did not like to disturbyou.’ He said: ‘Donot do that; I do not want to see it happenagain that one of youdies, while I am still among you, and you donot tell me, for myprayer for him is a mercy.’ Then he went to thegrave and we lined upin rows behind him, and he said four Takbir(i.e. for the funeralprayer).”