Jami` at-Tirmidhi, Book 47, Hadith 3411 (In-Book) ⓘ
Narrated Al-Bara: that regarding Allah's saying: Allah will keep firm those who believe, with the word that stands firm in this world and in the Hereafter (14:27). The Prophet said: "In the grave, when it is said to him: 'Who is your Lord? What is your religion? And who is your Prophet?'"
حَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ، حَدَّثَنَا أَبُو دَاوُدَ، حَدَّثَنَا شُعْبَةُ، أَخْبَرَنِي عَلْقَمَةُ بْنُ مَرْثِدٍ، قَالَ سَمِعْتُ سَعْدَ بْنَ عُبَيْدَةَ، يُحَدِّثُ عَنِ الْبَرَاءِ، عَنِ النَّبِيِّ صلى الله عليه وسلم فِي قَوْلِ اللَّهِ : ( يُثَبِّتُ اللَّهُ الَّذِينَ آمَنُوا بِالْقَوْلِ الثَّابِتِ فِي الْحَيَاةِ الدُّنْيَا وَفِي الآخِرَةِ ) قَالَ " فِي الْقَبْرِ إِذَا قِيلَ لَهُ مَنْ رَبُّكَ وَمَا دِينُكَ وَمَنْ نَبِيُّكَ " . قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ .
also referenced under: Hadith 3120 (Reference) & Volume 5, Book 44, Hadith 3120 (DarusSalam)