It’s widespread that when one enters the house he makes the following supplication
اللَّهُمَّ إِنِّي أَسْأَلُكَ خَيْرَ الْمَوْلِجِ وَخَيْرَ الْمَخْرَجِ بِسْمِ اللَّهِ وَلَجْنَا وَبِسْمِ اللَّهِ خَرَجْنَا وَعَلَى اللَّهِ رَبِّنَا تَوَكَّلْنَا ثُمَّ لْيُسَلِّمْ عَلَى أَهْلِهِ
Narrated AbuMalik Al-Ash’ari:
The Prophet (ﷺ) said: When a man goes into his house, he should say: “O Allah! I ask Thee for good both when entering and when going out; in the name of Allah we have entered, and in the name of Allah we have gone out, and in Allah our Lord do we trust.” He should then greet his family.
But the correct stance regarding this narration is that it is weak due to a cut in the chain as Imam Al Albani clarified after previously authenticating it.
What does one say then?
Imam An Nawawi said:
If he enters his house it is recommended to say “Bismillah”. He should increase from the remembrance of Allah Ta’ala, and he should give Salaam, whether there is a human in the house or not due to the statement of Allah Ta’alaa
فإذَا دَخَلْتُمْ بُيُوتاً فَسَلِّمُوا على أنْفُسِكُمُ تَحِيَّةً مِنْ عِنْدِ اللَّهِ مُبَارَكَةً طَيِّبَةً
But when you enter the houses, greet one another with a greeting from Allah (i.e. say: As-Salamu ‘Alaikum – peace be on you) blessed and good. [24:61]
[Saheeh Al Athkaar An Nawawiya page 32]
It comes from Jabir (May Allah be pleased with him) reported: I heard Messenger of Allah (ﷺ) saying, “If a person mentions the Name of Allah upon entering his house or eating, Satan says, addressing his followers: ‘You will find nowhere to spend the night and no dinner.’ But if he enters without mentioning the Name of Allah, Satan says (to his followers); ‘You have found (a place) to spend the night in, and if he does not mention the Name of Allah at the time of eating, Satan says: ‘You have found (a place) to spend the night in as well as food.”‘
Also it comes
from Anas Radiallahu Anhu he said that the messenger of Allah صلى الله عليه و سلم said to me:
O my little son! When you enter upon your family then give the Salam, it will be a blessing for you and upon the inhabitants of your house.”
[Reported by Imam At Tirmithi and declared Hassan by Ash Shaykh Al Albani in As Saheeh At Targheeb Wat Tarheeb and by Ash Shaykh Saleem Al Hilaali in Saheeh Al Athkaar An Nawawiyah page 32]
Allah knows best.
Majid Jawed Al-Afghanee