It is narrated from Sayyiduna Amir bin Rabi'ah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) passed by a new grave and asked: "Whose grave is this?" The people said: "It is the grave of such-and-such a woman." He (peace and blessings be upon him) said: "Why did you not inform me!" They said: "You (peace and blessings be upon him) were resting, so we disliked waking you." Then the Messenger of Allah (peace and blessings be upon him) said: "Do not do that again; call me for your funerals." Then he (peace and blessings be upon him) formed a row over that grave. Imam Abu Bakr bin Abi Shaybah recorded it with a hasan (good) chain, and the wording of Imam Abd bin Humayd's narration is: "A woman used to pick up straws and filth from the mosque; the Messenger of Allah (peace and blessings be upon him) passed by her grave and he (peace and blessings be upon him) offered the funeral prayer over her." Imam Ibn Majah recorded it without the part "You (peace and blessings be upon him) were sleeping" to the end, while the origin of this hadith is in the two Sahihs (Bukhari and Muslim) and other books from the narration of Sayyiduna Abu Hurayrah and Sayyiduna Uqbah bin Amir (may Allah be pleased with them both); and Imam al-Nasa'i recorded it from the hadith of Sayyiduna Jabir (may Allah be pleased with him) and Imam Ibn Majah from the hadith of Sayyiduna Abu Sa'id (may Allah be pleased with him) as well.