(66) باب الصَّلاَةِ عَلَى الْقَبْرِ بَعْدَ مَا يُدْفَنُ
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.
Reference: Sahih al-Bukhari 1337
In-book reference: Book 23, Hadith 93
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 23, Hadith 421