“The dead person ends up in his grave, then the righteous man is made to sit up in his grave with no fear or panic. Then it is said to him: ‘What religion did you follow?’ He said: ‘I was in Islam.’ It is said to him: ‘Who is this man?’ He says: ‘Muhammad the Messenger of Allah ﷺ. He brought us clear signs from Allah and we believed him.’ It is said to him: ‘Have you seen Allah?’ He says: ‘No one is able to see Allah.’ Then a window to Hell is opened for him, and he sees it, parts of it destroying others. Then it is said to him: ‘Look at what Allah has saved you from.’ Then a window to Paradise is opened to him, and he looks at its beauty and what is in it. It is said to him: ‘This is your place.’ And it is said to him: ‘You had certain faith and you died in that state, and in that state you will be resurrected if Allah wills.’ And the evil man is made to sit up in his grave with fear and panic. It is said to him: ‘What religion did you follow?’ He says: ‘I do not know.’ It is said to him: ‘Who is this man?’ He says: ‘I heard the people saying something and I said it too.’ Then a window to Paradise is opened to him, and he looks at its beauty and what is in it. It is said to him: ‘Look at what Allah has diverted away from you.’ Then a window to Hell is opened for him, and he sees it, parts of it destroying others, and it is said to him: ‘This is your place. You were doubtful; in this state you died and in this state you will be resurrected, if Allah wills.’” (Using translation from Ibn Mājah 4268)
"أما فِتْنَة الدَّجَّالِ فَإِنَّه لَمْ يكن نبي إِلا قَدْ حذرَ أُمتهُ وَسَأحَذرُكموهُ بحديث لم يحذِّرْهُ نبيٌّ أُمته: إِنه أَعْوَرُ وَاللهُ لَيسَ بأعْورَ، مكتوبٌ بَينَ عينيهِ كافِرُ، يَقْرَأهُ كُل مؤمِنٍ، وَأمَّا فِتْنَةُ القُبُورِ فبي تُفْتَنُونَ، وعنى تُسْألُون فإِذَا كان الرَّجُلُ الصالِحُ أُجِلسَ في قَبْرِهِ غَيرَ فزِعٍ ثم يقالُ لَهُ: مَا هَذَا الرَّجُلُ الَّذي كانَ فِيكُمْ؟ فَيَقُول: مُحَمّدٌ رَسُولُ اللهِ جاءَ بالبينَاتِ من عندِ اللهِ، فَصَدّقْنَاهُ فَيُفْرَجُ لهُ فُرْجَةٌ قِبَلَ النارِ؛ فَيَنْظُر إِلَيهَا يَحْطِمُ بَعْضُهَا بَعْضا، فَيُقَالُ لَهُ؛ انظُرْ إِلَى مَا وَقَاكَ اللهُ، ثُم يفَرَجُ له فُرْجَةٌ إِلَى الجَنَّةِ فَيَنْظُر إِلَى زَهْرَتِها وَمَا فِيها، فَيُقَالُ لَهُ: هذا مَقْعَدُكَ منها، ويُقَالُ: عَلَى اليَقينَ كنْتَ وَعَلَيه مُت، وَعَلَيهِ تُبْعَثُ إِنْ شَاءَ الله، وَإذَا كانَ الرَّجُلُ السُّوءُ أُجْلِسَ في قَبْرِهِ فَزِعًا، فَيُقَالُ له ما كُنْتَ تَقُولُ؟ فيقُولُ: لَا أدْرِي فيُقَالُ: مَا هَذَا الرجُلُ الذِي كان فيكم؟ فيقُولُ: سَمِعْتُ النَّاسَ يَقُولونَ قَوْلًا؛ فَقلتُ: كَمَا قالوُا؛ فَيُفْرَجُ له فُرْجَةٌ مِنْ قِبَل الجنة، فَينْظُرُ إِلى زَهْرَتِهَا وَمَا فِيها فَيُقَالُ لَهُ انظر إلى ما صرَفَ اللهُ عَنْكَ، ثم يُفْرَجُ لَهُ فرجة قِبَلَ النارِ، فَيَنْظُرُ إليها يَحْطِمُ بَعْضُهَا بَعْضًا؛ ويقالُ: هذا مَقْعدكَ منها. على الشَّكِّ كنْتَ، وعليه مُتَّ، وعليه تبعثُ إنْ شاءَ اللهُ، ثم يُعَذبُ".