Sayyiduna Abu Umamah al-Bahili (may Allah be pleased with him) narrates from the Messenger of Allah (peace and blessings be upon him): "Allah is the guarantor of three people: a man who goes out for jihad, for Allah guarantees him that He will either cause him to die and admit him to Paradise or return him with reward or spoils; a man who goes to the mosque, for it is upon Allah to admit him to Paradise after his death, or to return him with reward or spoils; and a man who enters his house with a greeting of salam, Allah is his guarantor as well."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 18538