Hadithcore
Riyad as-Salihin, 938

Abu Hurairah (May Allah be pleased with him) reported:

The Prophet (ﷺ) supplicated in course of funeral prayer: "Allahumma Anta Rabbuha, wa Anta khalaqtaha, wa Anta hadaytaha lil-Islam, wa Anta qabadta ruhaha, wa Anta a'lamu bisirriha wa 'alaniyyatiha, ji'naka shufa'a'a lahu <b>[if the dead person is a man, or laha if the dead person is a woman]</b>, faghfir lahu <b>[or laha, if it is a woman]</b> (O Allah, You are its Rubb; You created it; You guided it to Islam; You have taken its life back and You know best its insight and outer condition. We have come as intercessors, so forgive him)." <b>[Abu Dawud]</b>.

وعنه عن النبي صلى الله عليه وسلم الله عليه وسلمى الله عليه وسلم الله عليه وسلم في الصلاة علي الجنازة‏:‏ “اللهم أنت ربها، وأنت خلقتها، وأنت هديتها للإسلام، وأنت قبضت روحها، وأنت أعلم بسرها وعلانيتها، جئناك شفعاء له، فاغفر له” ‏(‏‏(‏رواه أبو داود‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 6, Hadith 45
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) It encourages us to be persistent in asking Allah for forgiveness and imploring Him to have mercy upon the deceased person.<br> 2) The funeral prayer constitutes intercession by the believers before Allah Almighty for deceased Muslims.<br> 3) It is permissible to mention the deceased by his first name and his father’s name.
Related hadiths7
Compare isnād across 7 related chains →