The Messenger of Allah ﷺ said, "When the Muslim is questioned in the grave, he bears witness that there is no god but Allah and that Muhammad is the Messenger of Allah. 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]."
حدثنا أبو الوليد حدثنا شعبة قال أخبرني علقمة بن مرثد قال سمعت سعد بن عبيدة
أن رسول الله ﷺ قال المسلم إذا سئل في القبر يشهد أن لا إله إلا الله وأن محمدا رسول الله فذلك قوله {يثبت الله الذين آمنوا بالقول الثابت في الحياة الدنيا وفي الآخرة}