Mishkat al-Masabih 727
Abu Umama reported God’s Messenger as  saying, "Three people are all in God’s safe keeping:
a man who goes out to fight in God’s path, who is in God’s safe keeping till He takes his soul and brings him into paradise, or sends him home with the reward or booty he has obtained; a man who goes out to the mosque, who is in God’s safe keeping; and a man who enters his house in peace,* who is in God’s safe keeping.” 

* The translation above is given on the analogy of Al-Qur’an; 15:46. The phrase might, however, mean one who gives a salutation when he enters his house.

Abu Dawud transmitted it.
وَعَن أبي أُمَامَة الْبَاهِلِيّ عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «ثَلَاثَة كلهم ضَامِن على الله عز وَجل رَجُلٌ خَرَجَ غَازِيًا فِي سَبِيلِ اللَّهِ فَهُوَ ضَامِن على الله حَتَّى يتوفاه فيدخله الْجنَّة أَو يردهُ بِمَا نَالَ من أجرأوغنيمة وَرَجُلٌ رَاحَ إِلَى الْمَسْجِدِ فَهُوَ ضَامِنٌ عَلَى الله حَتَّى يتوفاه فيدخله الْجنَّة أَو يردهُ بِمَا نَالَ مِنْ أَجْرٍ وَغَنِيمَةٍ وَرَجُلٌ دَخَلَ بَيْتَهُ بِسَلَامٍ فَهُوَ ضَامِنٌ عَلَى اللَّهِ» . رَوَاهُ أَبُو دَاوُد