Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) said: I attended a funeral with the Prophet (peace and blessings be upon him). The Prophet (peace and blessings be upon him) said: "O people, this Ummah will be tried in its graves. When a person is buried and his companions leave him, an angel comes to him with a mace in his hand. He makes him sit up and says: 'What do you say about this man?' If the deceased is a believer, he says: 'I bear witness that there is no god but Allah Almighty and that Sayyiduna Muhammad (peace and blessings be upon him) is His servant and His Messenger.' The angel says: 'You have spoken the truth.' Then a door towards Hell is opened for him, and the angel says: 'Had you disbelieved in your Lord, this would have been your abode; but since you believed in your Lord, this will be your abode.' Then a door towards Paradise is opened for him. He wants to get up and go towards it, but the angel says to him: 'Be still.' Then his grave is made spacious for him. If the deceased is a disbeliever or a hypocrite, the angel says to him: 'What do you say about this man?' He says: 'I do not know. I heard the people saying something.' The angel says: 'You neither understood, nor recited, nor were guided.' Then a door towards Paradise is opened for him, and the angel says: 'Had you believed in your Lord, this would have been your abode; but you disbelieved in your Lord, so Allah Almighty has given you this abode in its place.' Then a door towards Hell is opened for him. Then the angel strikes him with the mace, and his scream is heard by all of Allah's creation except the two kinds (mankind and jinn)." Some of those present said: "O Messenger of Allah, when an angel stands over someone with a mace, the man will surely be terrified at that moment." The Prophet (peace and blessings be upon him) said: (Allah Almighty has said:) "Allah keeps firm those who believe with the firm word."
Ahmad and al-Bazzar recorded it. He added these words: "in the life of this world and in the Hereafter; and Allah sends the wrongdoers astray, and Allah does what He wills." The narrators of this report are the narrators of the Sahih.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الجنائز / 4263
Hadith Gradingمحدثین:إسنادہ صحیح
Hadith Takhrij«اخرجه الامام احمد فى المسند (3/3) اخرجه الامام البزار فى المسند (872) ، أخرجه مسند أحمد برقم: 10617، وأخرجه فتح الباري برقم: 1305»