Muaz bin Jabal reported,

The Messenger of Allah ﷺ gave us a charge concerning five things. Whoever does any of them has a guarantee from Allah. Whoever visits a sick person, or walks in a funeral procession, or goes out to fight in the cause of Allah, or visits a ruler intending to honor and respect him, or stays in his home so that people are safe from him and he is safe from them.

Azami 3452

Hasan

عن معاذ قال

عهد إلينا رسول الله ﷺ في خمس من فعل منهن كان ضامنا على الله: من عاد مريضا، أو خرج مع جنازة، أو خرج غازيا في سبيل الله، أو دخل على إمام يريد بذلك تعزيره وتوقيره، أو قعد في بيته، فيسلم الناس منه ويسلم.

الأعظمي 3452حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Visiting the sick
Section
Virtue of visiting the sick
Numbering
Jami al-Kamil 3452 (2nd edition)
Azami 3452