Ayesha reported,

The Messenger of Allah ﷺ opened a door, or drew back a curtain, between himself and the people, and there he saw the people praying behind Abu Bakr. He praised Allah for the good state in which he saw them, hoping that Allah would leave them in that condition after him. He said, "People, whoever among the people, or among the believers, is struck by a calamity, let him find consolation in his calamity of losing me, for it will ease the pain of any other calamity that befalls him. None of my community will ever be struck by a calamity after me harder upon him than the calamity of losing me."

Ibn Majah 1599

Daif

حدثنا الوليد بن عمرو بن السكين حدثنا أبو همام حدثنا موسى بن عبيدة حدثنا مصعب بن محمد عن أبي سلمة بن عبد الرحمن

عن عائشة قالت

فتح رسول الله ﷺ بابا بينه وبين الناس أو كشف سترا فإذا الناس يصلون وراء أبي بكر فحمد الله على ما رأى من حسن حالهم رجاء أن يخلفه الله فيهم بالذي رآهم فقال يا أيها الناس أيما أحد من الناس أو من المؤمنين أصيب بمصيبة فليتعز بمصيبته بي عن المصيبة التي تصيبه بغيري فإن أحدا من أمتي لن يصاب بمصيبة بعدي أشد عليه من مصيبتي

ابن ماجه 1599ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Funerals
Chapter
Patience in the face of calamity
Numbering
Darussalam 1599
Ibn Majah 1599