Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:20696[Chain 1] Bakr b. Sahl al-Dimyāṭī > ʿAbdullāh b. Yūsuf [Chain 2] ʿUbaydullāh b. Muḥammad b. ʿAbd al-Raḥīm al-Barqī > ʿAmr b. Khālid al-Ḥarrānī > Ibn Lahīʿah > Abū al-Aswad > ʿUrwah > Asmāʾ b. Abū Bakr

[Machine] The Messenger of Allah ﷺ said: "Verily, the believer sits in his grave when those who witnessed him leave him. It will be said to him, 'Who is this man called Muhammad?' If he is a believer, he will say, 'He is the slave of Allah and His Messenger.' Then it will be said to him, 'Sleep, may your eyes be rested.' And if he is not a believer, he will say, 'By Allah, I do not know.' I heard people saying something, and I said it, and they argued, so I argued.'"  

الطبراني:٢٠٦٩٦حَدَّثَنَا بَكْرُ بْنُ سَهْلٍ الدِّمْيَاطِيُّ ثنا عَبْدُ اللهِ بْنُ يُوسُفَ ح وَحَدَّثَنَا عُبَيْدُ اللهِ بْنُ مُحَمَّدِ بْنِ عَبْدِ الرَّحِيمِ الْبَرْقِيُّ ثنا عَمْرُو بْنُ خَالِدٍ الْحَرَّانِيُّ قَالَا ثنا ابْنُ لَهِيعَةَ عَنْ أَبِي الْأَسْوَدِ عَنْ عُرْوَةَ عَنْ أَسْمَاءَ بِنْتِ أَبِي بَكْرٍ

عَنْ رَسُولِ اللهِ ﷺ قَالَ إِنَّ الْمُؤْمِنَ يَقْعُدُ فِي قَبْرِهِ حِينَ يَنْكَفِئُ عَنْهُ مَنْ يَشْهَدُهُ فَيُقَالُ لَهُ رَجُلٌ يُقَالُ لَهُ مُحَمَّدٌ مَنْ هُوَ؟ فَإِنْ كَانَ مُؤْمِنًا قَالَ هُوَ عَبْدُ اللهِ وَرَسُولُهُ فَيُقَالُ لَهُ نَمْ نَامَتْ عَيْنَاكَ وَإِنْ كَانَ غَيْرَ مُؤْمِنٍ قَالَ وَاللهِ مَا أَدْرِي سَمِعْتُ النَّاسَ يَقُولُونَ شَيْئًا فَقُلْتُهُ وَيَخُوضُونَ فَخُضْتُ فَيُقَالُ لَهُ نَمْ لَا نَامَتْ عَيْنَاكَ  


See similar narrations below:

Collected by Suyūṭī
suyuti:5849a
Request/Fix translation

  

السيوطي:٥٨٤٩a

"إِنَّ الْمُؤْمِنَ يُقْعَدُ فِى قَبْره حينَ يَتَكفَّأُ عَنْهُ مَنْ شَهدَهُ فَيُقَالُ لَهُ: رَجُلٌ يُقَالُ لَهُ: مُحمَّدٌ مَا هُو؟ فَإنْ كَانَ مُؤْمِنًا قَالَ: هُوَ عَبْدُ الله وَرسُولُهُ فَيُقَالُ لَهُ: نَمْ نَامَتْ عَيْنَاكَ، وَإِنْ كَانَ غَيْرَ مُؤمنٍ قَاَلَ: واللهِ مَا أَدْرى، سَمِعْتُ النَّاسَ يَقُولوُنَ شيئًا فَقُلْتُه، وَيَخُوضُون فخُضْت، فَيُقَالُ لَهُ: نَمْ لا نَامَتْ عَيْنَاك ".  

[طب] الطبرانى في الكبير عن أَسماءَ بنت أَبى بكر