Hadithcore
Al-Adab Al-Mufrad, 1096
sahih· Al-Albani

Jabir reported that the Prophet, (ﷺ), 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.'"

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

References2 variants
In-Book Reference
Book 43, Hadith 46
English Reference
Book 43, Hadith 1096