It wasnarrated from Bara' bin 'Azib that the Prophet (ﷺ) said:
"Allahwill keep firm those who believe, with the word that standsfirm."[14:27] This has been revealed concerning the torment of thegrave.It will be said to him: 'Who is your Lord?' He will say: 'MyLord is Allah, and my Prophet is Muhammad.' This is what Allahsays:Allah will keep firm those who believe, with the word thatstands firmin this world (i.e. they will keep on worshipping AllahAlone and noneelse), and in the Hereafter (i.e., at the time ofquestioning in thegrave).'" [14:27]
English reference: Vol. 5, Book 37, Hadith 4269
Arabic reference: Book 37, Hadith 4410