Sahih al-Bukhari 1337
Muhammad bin Fadl narrated to us, (he said:) Hammad bin Zaid told us. He narrated from Thabit, Thabit from Abu Rafi', Abu Rafi' from Hazrat Abu Hurairah (ra), that a black man, or he said: a black woman, {who stayed in the mosque}, whose task was to sweep the mosque, died, and the Messenger of Allah (saw) was not informed of the death. One day he remembered him and said: “What happened to him?” The people informed the Messenger of Allah (saw) of his death. He said: “Why did you not inform me of it?” They related the whole incident. (Hazrat Abu Hurairah (ra)) used to say: The people regarded his condition as insignificant. He said: “Show me his grave.” (Hazrat Abu Hurairah (ra) used to say:) Then he came to his grave and led the funeral prayer over him.
AI-translated by Islam-Today
Book 66: To offer the (funeral) Salat on the grave after the burial of the deceased