Bara bin Azib reported,

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]."

Abu Dawud 4750

Sahih

حدثنا أبو الوليد الطيالسي حدثنا شعبة عن علقمة بن مرثد عن سعد بن عبيدة

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

أن رسول الله ﷺ قال إن المسلم إذا سئل في القبر فشهد أن لا إله إلا الله وأن محمدا رسول الله ﷺ فذلك قول الله عز وجل {يثبت الله الذين آمنوا بالقول الثابت}

أبو داود 4750صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Sunnah
Chapter
Questioning in the grave and punishment of the grave
Numbering
Darussalam 4750
Abu Dawud 4750