The Messenger of Allah ﷺ led us in funeral prayer over one of the Muslims, and I heard him say, "O Allah, so-and-so, son of so-and-so, is under Your protection and within the bond of Your security. Shield him from the trial of the grave and the torment of the Fire. You are the One worthy of fulfilling promises and worthy of truth," and in another narration, "worthy of praise." "O Allah, forgive him and have mercy on him, for You are the Most Forgiving, the Most Merciful."
صلى بنا رسول الله ﷺ على رجل من المسلمين، فسمعته يقول: اللهم إن فلان بن فلان في ذمتك، وحبل جوارك، فقه من فتنة القبر، وعذاب النار، وأنت أهل الوفاء والحق- وفي رواية: الحمد- اللهم فاغفر له، وارحمه، إنك أنت الغفور الرحيم.
This was narrated by Abu Dawud (3202), Ibn Majah (1499), and Ahmad (16018), and Ibn Hibban (3074) graded it sahih, all of them through Walid bin Muslim, who said, "Hudaythana Marwan bin Jannah," who said, "Haddathani Yunus bin Maysara bin Halabas," from Wathila bin Asqa, and he related it.Its chain is hasan because of Marwan bin Jannah, the freedman of the Umayyads, of Damascus, for his hadith is hasan. As for Walid bin Muslim, the freedman of the Quraysh, he frequently practiced tadlis and taswiya, but he explicitly stated that he heard the hadith directly, which removes the suspicion of tadlis from him.As for his saying, "the bond of your neighborly protection," some scholars said, "It was the custom of the Arabs to threaten one another, so when a man wanted to travel, he would take a pledge from the chief of each tribe, and he would be safe under it as long as he remained within that tribe's territory, until he reached the next one, where he would take a similar pledge. This is the bond of neighborly protection, meaning as long as he was residing in that tribe's land. Or it may come from ijara, which means protection and support." This is what Munziri said.It was also narrated from Abu Hurairah that he used to pray over the newborn (that is, an infant who had died shortly after birth) who had not committed any sin, saying, "O Allah, make him a precursor for us, a predecessor, and a reward." This was narrated by Bayhaqi in Daawat (633) with a chain that has some weakness.Hasan Basri, when he prayed over a child, used to say, "O Allah, make him a predecessor for us, a precursor, and a reward." Bukhari mentioned this in the Book of Funerals, in the chapter on reciting Fatihat al-Kitab over the funeral prayer, as a suspended report from Hasan Basri stated with certainty. Abdul-Razzaq (6588) and others connected it with a full chain.