Al-Adab Al-Mufrad, Book 43, Hadith 46 (In-Book)

Jabir reported that the Prophet, may Allah bless him and grant him peace, said, "When a man enters his house, he should Allah mention Allah Almighty, both when he enters and he eats. If he does so, Shaytan says (i.e. to the shayatin), 'You cannot spend the night or eat.' When he enters and does not mention Allah when he enters, Shaytan says, 'You have got your lodgings for the night and your supper.'"

حَدَّثَنَا خَلِيفَةُ، قَالَ‏:‏ حَدَّثَنَا أَبُو عَاصِمٍ، قَالَ‏:‏ حَدَّثَنَا ابْنُ جُرَيْجٍ، عَنْ أَبِي الزُّبَيْرِ، عَنْ جَابِرٍ، أَنَّهُ سَمِعَ النَّبِيَّ صلى الله عليه وسلم يَقُولُ‏:‏ إِذَا دَخَلَ الرَّجُلُ بَيْتَهُ، فَذَكَرَ اللَّهَ عَزَّ وَجَلَّ عِنْدَ دُخُولِهِ، وَعِنْدَ طَعَامِهِ، قَالَ الشَّيْطَانُ‏:‏ لاَ مَبِيتَ لَكُمْ وَلاَ عَشَاءَ، وَإِذَا دَخَلَ فَلَمْ يَذْكُرِ اللَّهَ عِنْدَ دُخُولِهِ قَالَ الشَّيْطَانُ‏:‏ أَدْرَكْتُمُ الْمَبِيتَ، وَإِنْ لَمْ يَذْكُرِ اللَّهَ عِنْدَ طَعَامِهِ قَالَ الشَّيْطَانُ‏:‏ أَدْرَكْتُمُ الْمَبِيتَ وَالْعَشَاءَ‏.‏

sunnah.com