Sunan Ibn Majah, Volume 5, Book 37, Hadith 4269 (DarusSalam)

It was narrated from Bara’ bin ‘Azib that the Prophet said: “Allah will keep firm those who believe, with the word that stands firm.” [14:27] This has been revealed concerning the torment of the grave. It will be said to him: ‘Who is your Lord?’ He will say: ‘My Lord is Allah, and my Prophet is Muhammad.’ This is what Allah says: Allah will keep firm those who believe, with the word that stands firm in this world (i.e. they will keep on worshipping Allah Alone and none else), and in the Hereafter (i.e., at the time of questioning in the grave).’” [14:27]

حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، حَدَّثَنَا شُعْبَةُ، عَنْ عَلْقَمَةَ بْنِ مَرْثَدٍ، عَنْ سَعْدِ بْنِ عُبَيْدَةَ، عَنِ الْبَرَاءِ بْنِ عَازِبٍ، عَنِ النَّبِيِّ ـ صلى الله عليه وسلم ـ قَالَ ‏:‏ ‏"‏ ‏{يُثَبِّتُ اللَّهُ الَّذِينَ آمَنُوا بِالْقَوْلِ الثَّابِتِ }‏ قَالَ ‏:‏ نَزَلَتْ فِي عَذَابِ الْقَبْرِ يُقَالُ لَهُ ‏:‏ مَنْ رَبُّكَ فَيَقُولُ ‏:‏ رَبِّيَ اللَّهُ وَنَبِيِّي مُحَمَّدٌ فَذَلِكَ قَوْلُهُ ‏{يُثَبِّتُ اللَّهُ الَّذِينَ آمَنُوا بِالْقَوْلِ الثَّابِتِ فِي الْحَيَاةِ الدُّنْيَا وَفِي الآخِرَةِ}‏ ‏"‏ ‏.‏

sunnah.com