Bara bin Azib reported,

The Prophet ﷺ mentioned the punishment of the grave and said, "He will be asked, 'Who is your Lord?' He will reply, 'Allah is my Lord, and Muhammad is my Prophet.' This is the meaning of His statement, 'Allah keeps firm those who believe with the firm word in the worldly life' [Ibrahim 14:27], referring to the Muslim."

Ahmad 18575

Sahih

حدثنا محمد بن جعفر حدثنا شعبة عن علقمة بن مرثد عن سعد بن عبيدة

عن البراء بن عازب

عن النبي ﷺ قال ذكر عذاب القبر قال يقال له من ربك فيقول الله ربي ونبيي محمد فذلك قوله {يثبت الله الذين آمنوا بالقول الثابت في الحياة الدنيا} يعني بذلك المسلم

أحمد 18575صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Bara bin Azib
Numbering
Darussalam 18575
Ahmad 18575