To offer the (funeral) Salat on the grave after the burial of the deceased
حَدَّثَنَا مُحَمَّدُ بْنُ الْفَضْلِ، حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ، عَنْ ثَابِتٍ، عَنْ أَبِي رَافِعٍ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ أَنَّ أَسْوَدَ ـ رَجُلاً أَوِ امْرَأَةً ـ كَانَ يَقُمُّ الْمَسْجِدَ فَمَاتَ، وَلَمْ يَعْلَمِ النَّبِيُّ صلى الله عليه وسلم بِمَوْتِهِ فَذَكَرَهُ ذَاتَ يَوْمٍ فَقَالَ " مَا فَعَلَ ذَلِكَ الإِنْسَانُ ". قَالُوا مَاتَ يَا رَسُولَ اللَّهِ. قَالَ " أَفَلاَ آذَنْتُمُونِي ". فَقَالُوا إِنَّهُ كَانَ كَذَا وَكَذَا قِصَّتَهُ. قَالَ فَحَقَرُوا شَأْنَهُ. قَالَ " فَدُلُّونِي عَلَى قَبْرِهِ ". فَأَتَى قَبْرَهُ فَصَلَّى عَلَيْهِ.
Narrated Abu Huraira: A black person, a male or a female used to clean the Mosque and then died. The Prophet (p.b.u.h) did not know about it . One day the Prophet (ﷺ) remembered him and said, "What happened to that person?" The people replied, "O Allah's Messenger! He died." He said, "Why did you not inform me?" They said, "His story was so and so (i.e. regarded him as insignificant)." He said, "Show me his grave." He then went to his grave and offered the funeral prayer.