Sayyida Umm Salamah (may Allah be pleased with her) says that the Prophet (peace and blessings be upon him) said: "When you attend the funeral of a deceased person, the angels also say Ameen." I said: O Messenger of Allah! What should we say? The Prophet (peace and blessings be upon him) said: "Say: ﴿اللّٰهُمَّاغْفِرْلَنَاوَلَهُوَارْحَمْهُوَاعْقُبْنِيمِنْهُعُقْبَىصَالِحَةً﴾ 'O Allah! Forgive us and him, have mercy on him, and grant me in his place a good substitute.'" So Allah Almighty granted me, in exchange for him, the Prophet (peace and blessings be upon him).
Hadith Referenceمعجم صغير للطبراني / كتاب الجنائز و ذكر الموت / 351
Hadith Gradingمحدثین:صحيح
Hadith Takhrij«أخرجه مسلم فى «صحيحه» برقم: 919، 920، وابن حبان فى «صحيحه» برقم: 3005، 7041، والحاكم فى «مستدركه» برقم: 6829، والنسائي فى «المجتبیٰ» برقم: 1822، والنسائي فى «الكبریٰ» برقم: 1964، 8227، 10841، وأبو داود فى «سننه» برقم: 3115، 3118، والترمذي فى «جامعه» برقم: 977، وابن ماجه فى «سننه» برقم: 1447، 1454، والبيهقي فى«سننه الكبير» برقم: 6697، وأحمد فى «مسنده» برقم: 27140،والطبراني فى«الكبير» برقم: 712، 713، 714، 722، 725، 940، والطبراني فى «الصغير» برقم: 631»