Abu Zubayr reported,

Bishr asked Jabir bin Abdullah about the questioners of the grave, and he said, "I heard the Prophet ﷺ say, 'This community will be tested in their graves. When the believer is placed in his grave and his companions turn away from him, an angel of severe rebuke comes to him and asks, "What did you used to say about this man?"The believer answers, "I say that he is the Messenger of Allah ﷺ and His servant."The angel then says to him, "Look at your seat in the Fire. Allah has saved you from it and exchanged it for the seat in Paradise that you now see." So he sees both of them.The believer says, "Let me go and give the good news to my family."He is told, "Stay where you are."As for the hypocrite, he sits up when his family has turned away from him, and he is asked, "What did you used to say about this man?"He answers, "I do not know. I used to say what the people said."He is told, "May you never know. This was your seat in Paradise, and it has been exchanged for your seat in the Fire."'"Jabir said, "I heard the Prophet ﷺ say, 'Every servant will be raised in the grave in the state in which he died, the believer upon his faith and the hypocrite upon his hypocrisy.'"

Azami 3888

Sahih

عن أبي الزبير

أنه سأل جابر بن عبد الله، عن فتاني القبر، فقال: سمعت النبي ﷺ يقول: إن هذه الأمة تبتلى في قبورها، فإذا أدخل المؤمن قبره، وتولى عنه أصحابه، جاء ملك شديد الانتهار، فيقول له: ما كنت تقول في هذا الرجل؟ فيقول المؤمن: أقول: إنه رسول الله ﷺ وعبده، فيقول له الملك: انظر إلى مقعدك الذي كان لك في النار، قد أنجاك الله منه، وأبدلك بمقعدك الذي ترى من النار مقعدك الذي ترى من الجنة، فيراهما كلاهما، فيقول المؤمن: دعوني أبشر أهلي، فيقال له: اسكن وأما المنافق، فيقعد إذا تولى عنه أهله، فيقال له: ما كنت تقول في هذا الرجل؟ فيقول: لا أدري، أقول ما يقول الناس، فيقال له: لا دريت هذا مقعدك الذي كان لك من الجنة، قد أبدلت مكانه مقعدك من النار. قال جابر: فسمعت النبي ﷺ يقول: يبعث كل عبد في القبر على ما مات: المؤمن على إيمانه، والمنافق على نفاقه.

الأعظمي 3888صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Conditions of the deceased in the grave
Section
Wishing of one whose sins are forgiven that his family could know what Allah has honored him with
Numbering
Jami al-Kamil 3888 (2nd edition)
Azami 3888