Bara bin Azib reported,

The Prophet ﷺ said concerning the verse "Allah keeps firm those who believe with the firm word", "This was revealed about 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 words عز وجل, 'Allah keeps firm those who believe with the firm word in this worldly life and in the Hereafter' [Ibrahim 14:27]."Another wording has it, "When the believer is seated in his grave, he is approached, and he then testifies that there is no god but Allah and that Muhammad is the Messenger of Allah. That is the meaning of His words, 'Allah keeps firm those who believe with the firm word' [Ibrahim 14:27]."

Azami 12592

Sahih

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

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

الأعظمي 12592صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "What is above it. As for those who believe, they know that it is the truth from their Lord. But as for those who disbelieve, they say, 'What did Allah intend by this?'"
Numbering
Jami al-Kamil 12592 (2nd edition)
Azami 12592