عَن جَابر بن عبد الله قَالَ خَرَجْنَا مَعَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِلَى سَعْدِ بْنِ مُعَاذٍ حِينَ توفّي قَالَ فَلَمَّا صَلَّى عَلَيْهِ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَوُضِعَ فِي قَبْرِهِ وَسُوِّيَ عَلَيْهِ سَبَّحَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَسَبَّحْنَا طَوِيلًا ثُمَّ كَبَّرَ فَكَبَّرْنَا فَقِيلَ يَا رَسُولَ اللَّهِ لِمَ سَبَّحَتْ ثُمَّ كَبَّرْتَ قَالَ: «لقد تضايق على هَذَا العَبْد الصَّالح قَبره حَتَّى فرجه الله عز وَجل عَنهُ» . رَوَاهُ أَحْمد
Translation

Asma’ daughter of Abu Bakr said, “God’s messenger arose to deliver an address in which he mentioned the trial a man will endure in the grave. On his mentioning that, the Muslims gave a shout of dismay." Bukhari transmitted it thus, but Nasa’i added, “which prevented me from grasping what God's messenger had said. So when the clamour died down I said to a man near me, ‘God bless you, what did God’s messenger say at the end of his address?' He replied that he said he had had a revelation that the trial they would endure in their graves would approximate to that of ad-Dajjal."