Narrated Abu Malik Al-Ashari: 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 or Lord do we trust. " He should then greet his family.
Hadith Referenceسنن ابي داود / أبواب النوم / 5096
Hadith Gradingالألبانی:ضعيف | زبیر علی زئی:ضعيف, إسناده ضعيف, شريح عن أبي مالك مرسل, أي : منقطع, انوار الصحيفه، صفحه نمبر 176