Abu Umama Bahili reported,

The Messenger of Allah ﷺ said, "There are three people, all of whom are under Allah's عز وجل guarantee. A man who goes out as a warrior in the path of Allah is under Allah's guarantee until He takes his soul and admits him into Paradise, or returns him with whatever reward and spoils he has gained. A man who goes to the mosque is under Allah's guarantee until He takes his soul and admits him into Paradise, or returns him with whatever reward and spoils he has gained. And a man who enters his home with the greeting of peace is under Allah's عز وجل guarantee."

Azami 7728

Sahih

عن أبي أمامة الباهلي

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

الأعظمي 7728صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Virtues of jihad
Section
Holding governors accountable
Numbering
Jami al-Kamil 7728 (2nd edition)
Azami 7728