Anas bin Malik reported,

We were with the Messenger of Allah ﷺ when he laughed and asked, "Do you know what makes me laugh?"We replied, "Allah and His Messenger know best."He said, "It is the servant's address to his Lord. He will say, 'My Lord, did You not grant me protection from injustice?'The Lord will reply, 'Yes indeed.'The servant will then say, 'I will not accept any witness against me except from myself.'The Lord will say, 'Your own self is sufficient as a witness against you today, along with the noble recording angels as witnesses.'Then his mouth will be sealed, and his limbs will be told, 'Speak.' So they will speak of his deeds. Afterward, he will be allowed to speak again, and he will say to his limbs, 'Away with you, and may you perish! It was on your behalf that I was contending.'"

Muslim 7439

Sahih

حدثنا أبو بكر بن النضر بن أبي النضر حدثني أبو النضر هاشم بن القاسم حدثنا عبيد الله الأشجعي عن سفيان الثوري عن عبيد المكتب عن فضيل عن الشعبي

عن أنس بن مالك قال

كنا عند رسول الله ﷺ فضحك فقال هل تدرون مم أضحك قال قلنا الله ورسوله أعلم قال من مخاطبة العبد ربه يقول يا رب ألم تجرني من الظلم قال يقول بلى قال فيقول فإني لا أجيز على نفسي إلا شاهدا مني قال فيقول كفى بنفسك اليوم عليك شهيدا وبالكرام الكاتبين شهودا قال فيختم على فيه فيقال لأركانه انطقي قال فتنطق بأعماله قال ثم يخلى بينه وبين الكلام قال فيقول بعدا لكن وسحقا فعنكن كنت أناضل

مسلم 7439صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Asceticism and heart-softening matters
Chapter
World is a prison for the believer and a paradise for the disbeliever
Numbering
Darussalam 7439
Muslim 7439