Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:4195al-Qāsim b. Zakariyyā b. Dīnār > Isḥāq b. Manṣūr > Abū Rajāʾ al-Khurāsānī > Muḥammad b. Mālik > al-Barāʾ

“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.’”  

ابن ماجة:٤١٩٥حَدَّثَنَا الْقَاسِمُ بْنُ زَكَرِيَّا بْنِ دِينَارٍ حَدَّثَنَا إِسْحَاقُ بْنُ مَنْصُورٍ حَدَّثَنَا أَبُو رَجَاءٍ الْخُرَاسَانِيُّ عَنْ مُحَمَّدِ بْنِ مَالِكٍ عَنِ الْبَرَاءِ قَالَ

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


See similar narrations below:

Collected by Bayhaqī
bayhaqi:6515Abū Manṣūr Muḥammad b. Muḥammad b. ʿAbdullāh b. Nūḥ from Awlād Ibrāhīm al-Nakhaʿī Bi-al-Kūfah > Abū Jaʿfar Muḥammad b. ʿAlī b. Duḥaym > Aḥmad b. Ḥāzim b. Abū Gharazah > ʿAbdullāh b. Muḥammad / Ibn Abū Shaybah > Isḥāq b. Manṣūr > Abū Rajāʾ ʿAbdullāh b. Wāqid > Muḥammad b. Mālik > al-Barāʾ b. ʿĀzib

[Machine] We were with the Messenger of Allah ﷺ at a funeral; when we reached the grave, he exhorted upon the grave and I turned and faced him; so he wept until the ground became wet and then he said, "My brothers, prepare for a day like this."  

البيهقي:٦٥١٥أَخْبَرَنَا أَبُو مَنْصُورٍ مُحَمَّدُ بْنُ مُحَمَّدِ بْنِ عَبْدِ اللهِ بْنِ نُوحٍ مِنْ أَوْلَادِ إِبْرَاهِيمَ النَّخَعِيِّ بِالْكُوفَةِ أنبأ أَبُو جَعْفَرٍ مُحَمَّدُ بْنُ عَلِيِّ بْنِ دُحَيْمٍ ثنا أَحْمَدُ بْنُ حَازِمِ بْنِ أَبِي غَرَزَةَ أنبأ عَبْدُ اللهِ بْنُ مُحَمَّدٍ يَعْنِي ابْنَ أَبِي شَيْبَةَ ثنا إِسْحَاقُ بْنُ مَنْصُورٍ عَنْ أَبِي رَجَاءٍ عَبْدِ اللهِ بْنِ وَاقِدٍ عَنْ مُحَمَّدِ بْنِ مَالِكٍ عَنِ الْبَرَاءِ بْنِ عَازِبٍ قَالَ

كُنَّا مَعَ رَسُولِ اللهِ ﷺ فِي جِنَازَةٍ؛ فَلَمَّا انْتَهَيْنَا إِلَى الْقَبْرِ حَثَا عَلَى الْقَبْرِ فَاسْتَدَرْتُ فَاسْتَقْبَلْتُهُ؛ فَبَكَى حَتَّى بَلَّ الثَّرَى ثُمَّ قَالَ إِخْوَانِي لِمِثْلِ هَذَا الْيَوْمِ فَأَعِدُّوا