Bara bin Azib reported,

The Messenger of Allah ﷺ said, mentioning the disbeliever when his soul is taken, "His soul is returned to his body, and two angels of severe rebuke come to him. They sit him up and rebuke him.They ask him, 'Who is your Lord?'He replies, 'I do not know.'They ask him, 'What is your religion?'He replies, 'I do not know.'He is asked, 'Who is this Prophet who was sent among you?'He replies, 'I heard the people saying something, but I do not know.'They say, 'You did not know.'That is the meaning of the saying of Allah, "Allah leads the wrongdoers astray, and Allah does what He wills" [Ibrahim 14:27]."

Azami 3874

Hasan

عن البراء قال

قال رسول الله ﷺ: وذكر الكافر حين تقبض روحه قال: فتعاد روحه في جسده، قال: فيأتيه ملكان شديدا الانتهار فيجلسانه فينتهرانه، فيقولان له: من ربك؟ فيقول: لا أدري، قال: فيقولان له: ما دينك؟ فيقول: لا أدري، قال: فيقال له: ما هذا النبي الذي بعث فيك؟ قال: فيقول: سمعت الناس يقولون ذلك، لا أدري قال: فيقولان لا دريت قال: وذلك قوله الله: {ويضل الله الظالمين ويفعل الله ما يشاء}.

الأعظمي 3874حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Conditions of the deceased in the grave
Section
Allah keeps firm those who believe with the firm word in the grave, and Allah leaves astray the wrongdoers in the grave
Numbering
Jami al-Kamil 3874 (2nd edition)
Azami 3874