I heard the Messenger of Allah ﷺ say, "There is no servant who is struck by a calamity and says, 'Indeed, we belong to Allah, and to Him we shall return' [Baqarah 2:156], 'O Allah, reward me in my calamity and replace it for me with something better,' except that Allah will reward him in his calamity and replace it for him with something better."She said, "When Abu Salama died, I said what the Messenger of Allah ﷺ had instructed me to say, and Allah replaced him for me with someone better, the Messenger of Allah ﷺ."
و حدثنا أبو بكر بن أبي شيبة حدثنا أبو أسامة عن سعد بن سعيد قال أخبرني عمر بن كثير بن أفلح قال سمعت ابن سفينة يحدث أنه سمع
سمعت رسول الله ﷺ يقول ما من عبد تصيبه مصيبة فيقول {إنا لله وإنا إليه راجعون} اللهم أجرني في مصيبتي وأخلف لي خيرا منها إلا أجره الله في مصيبته وأخلف له خيرا منها قالت فلما توفي أبو سلمة قلت كما أمرني رسول الله ﷺ فأخلف الله لي خيرا منه رسول الله ﷺ