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."
حدثنا الوليد بن عمرو بن السكين حدثنا أبو همام حدثنا موسى بن عبيدة حدثنا مصعب بن محمد عن أبي سلمة بن عبد الرحمن
فتح رسول الله ﷺ بابا بينه وبين الناس أو كشف سترا فإذا الناس يصلون وراء أبي بكر فحمد الله على ما رأى من حسن حالهم رجاء أن يخلفه الله فيهم بالذي رآهم فقال يا أيها الناس أيما أحد من الناس أو من المؤمنين أصيب بمصيبة فليتعز بمصيبته بي عن المصيبة التي تصيبه بغيري فإن أحدا من أمتي لن يصاب بمصيبة بعدي أشد عليه من مصيبتي
No references are available.
Its isnad is daif. Musa bin Ubayda is daif, as mentioned before, h: 251, and his hadith has corroborations (mursal and others) in Malik, Ibn Saad, and Abu Naeem (in Akhbar Isbahan) and others, but none of them are sound.