Sunan Ibn Majah, Hadith 4195

It was narrated that Bara’ said: “We were with the Messenger of Allah at a funeral, and he sat at the edge of the grave weeping, until the ground became wet. Then he said: ‘O my brothers, prepare yourselves for something like this.’”

حَدَّثَنَا الْقَاسِمُ بْنُ زَكَرِيَّا بْنِ دِينَارٍ، حَدَّثَنَا إِسْحَاقُ بْنُ مَنْصُورٍ، حَدَّثَنَا أَبُو رَجَاءٍ الْخُرَاسَانِيُّ، عَنْ مُحَمَّدِ بْنِ مَالِكٍ، عَنِ الْبَرَاءِ، قَالَ كُنَّا مَعَ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ فِي جِنَازَةٍ فَجَلَسَ عَلَى شَفِيرِ الْقَبْرِ فَبَكَى حَتَّى بَلَّ الثَّرَى ثُمَّ قَالَ ‏ "‏ يَا إِخْوَانِي لِمِثْلِ هَذَا فَأَعِدُّوا ‏" ‏ ‏.‏

sunnah.com