Bara bin Azib reported,

The Prophet ﷺ said regarding the verse "Allah keeps firm those who believe with the firm word" [Ibrahim 14:27], "It was revealed concerning the punishment of the grave. He is asked, 'Who is your Lord?' and he answers, 'My Lord is Allah and my Prophet is Muhammad.' That is the meaning of His saying, 'Allah keeps firm those who believe with the firm word in the life of this world and in the Hereafter' [Ibrahim 14:27]."

Ibn Majah 4269

Sahih

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

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

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

ابن ماجه 4269صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Asceticism
Chapter
Grave and decay
Numbering
Darussalam 4269
Ibn Majah 4269