The Messenger of Allah ﷺ entrusted us with five things. Whoever does any of them has a guarantee from Allah, one who visits the sick, one who goes out with a funeral procession, one who goes out as a warrior in the path of Allah, one who comes before a leader intending thereby to honor and respect him, or one who stays in his home so that people are safe from him and he is safe from them.
حدثنا عبد الله حدثني أبي حدثنا قتيبة بن سعيد حدثنا ابن لهيعة عن الحارث بن يزيد عن علي بن رباح عن عبد الله بن عمرو بن العاص
عهد إلينا رسول الله ﷺ في خمس من فعل منهن كان ضامنا على الله من عاد مريضا أو خرج مع جنازة أو خرج غازيا في سبيل الله أو دخل على إمام يريد بذلك تعزيره وتوقيره أو قعد في بيته فيسلم الناس منه ويسلم
Its chain of transmission is hasan because of Ibn Lahia. As for Ali bin Rabah and Harith bin Yazid Hadrami, they are both reliable narrators in their hadith reports according to Muslim. Ahmad alone narrated the hadith with this wording.