The Messenger of Allah ﷺ said, "When the Muslim is questioned in the grave and bears witness that there is no god but Allah and that Muhammad is the Messenger of Allah ﷺ, that is the meaning of Allah's words , "Allah keeps firm those who believe with the firm word" [Ibrahim 14:27]."
حدثنا أبو الوليد الطيالسي حدثنا شعبة عن علقمة بن مرثد عن سعد بن عبيدة
أن رسول الله ﷺ قال إن المسلم إذا سئل في القبر فشهد أن لا إله إلا الله وأن محمدا رسول الله ﷺ فذلك قول الله عز وجل {يثبت الله الذين آمنوا بالقول الثابت}
Bukhari narrated it in the tafsir of Surah Ibrahim, peace be upon him, in the chapter, "Allah confirms those who believe with a firm word," hadith no. 4699, from Abu Walid Tayalisi.Muslim narrated it in the book of Paradise and the description of its bliss, in the chapter on the presentation of the deceased's place from Paradise or Hell to him, etc., hadith no. 2871, from the hadith of Shubah, through the same chain.