He heard the Prophet ﷺ say, "When a man enters his house and mentions Allah upon entering and when he eats, Satan says, 'You have no place to spend the night, and no dinner.' But when he enters and does not mention Allah upon entering, Satan says, 'You have found a place to spend the night.' And when he does not mention Allah at his meal, Satan says, 'You have found both a place to spend the night and dinner.'"
أنه سمع النبي ﷺ يقول: إذا دخل الرجل بيته، فذكر الله عند دخوله وعند طعامه، قال الشيطان: لا مبيت لكم، ولا عشاء، وإذا دخل، فلم يذكر الله عند دخوله، قال الشيطان: أدركتم المبيت، وإذا لم يذكر الله عند طعامه، قال: أدركتم المبيت والعشاء.
Muslim narrated it in the Book of Drinks (2018:103) from Muhammad bin Muthanna Anazi, who said, Dahhak, meaning Abu Asim, narrated to us, from Ibn Jurayj, Abu Zubayr informed me, from Jabir bin Abdullah, and he related it.His words, "Satan said," meaning to his companions and helpers. Similar in meaning is what was reported from Abu Malik Ashari, who said, the Messenger of Allah ﷺ said, "When a man enters his house, let him say, 'O Allah, I ask You for the best of entering and the best of exiting. In the name of Allah we enter, and in the name of Allah we exit, and upon Allah our Lord we rely.' Then let him greet his family with peace."Abu Dawud narrated it (5096), and from his route Bayhaqi narrated it in Daawat Kabir (480), from Ibn Awf, who said, Muhammad bin Ismail narrated to us, who said, my father narrated to me. Ibn Awf said, and I saw in the original manuscript of Ismail that he said, Damdam narrated to me, from Shurayh, from Abu Malik Ashari, and he related it.Shurayh is Ibn Ubayd, who did not hear from Abu Malik Ashari, who died in the year 18 AH, as Abu Hatim said. Ibn Hajar faulted the hadith on this basis in Nataij Afkar. Muhammad bin Ismail is Ibn Ayyash, who is criticized, and he was faulted for narrating from his father without having actually heard from him. However, Muhammad bin Awf, the teacher of Abu Dawud, also saw this in the original manuscript of Ismail bin Ayyash. So the defect is confined to its being disconnected, and what is found in the Sahih suffices in its place, for the remembrance mentioned there is general, allowing one to remember Allah in whatever wording he wishes.