It wasnarrated that Bara' said:
"We were with the Messenger of Allah(ﷺ) at a funeral, and he sat at the edge of the grave weeping,untilthe ground became wet. Then he said: 'O my brothers, prepareyourselves for something like this.'" (PT)
English reference (PT): Vol. 5, Book 37, Hadith 4195 (PT)
Arabic reference (PT): Book 37, Hadith 4335 (PT)