The adhkar reported when entering the home and when leaving it.
Arabic is the original text; the translation is an aid to understanding.
بِسْمِ اللَّهِ وَلَجْنَا، وَبِسْمِ اللَّهِ خَرَجْنَا، وَعَلَى اللَّهِ رَبِّنَا تَوَكَّلْنَا، ثُمَّ لِيُسَلِّمْ عَلَى أَهْلِهِ
In the name of Allah we enter, in the name of Allah we leave, and upon Allah our Lord we rely. Then he should greet his family.
Entering the home, Narrated by Abu Dawud (its chain graded hasan by Ibn Baz) Virtue & source
Virtue: When a man mentions Allah upon entering his home and at his meal, Satan says: There is no lodging and no supper for you here.
Source: The hadith is in Sahih Muslim, and this supplication was narrated by Abu Dawud its chain graded hasan by Ibn Baz in Tuhfat al-Akhyar.
بِسْمِ اللَّهِ، تَوَكَّلْتُ عَلَى اللَّهِ، وَلَا حَوْلَ وَلَا قُوَّةَ إِلَّا بِاللَّهِ
In the name of Allah. I rely on Allah; there is no power and no might except with Allah.
Leaving the home, Narrated by Abu Dawud and al-Tirmidhi
اللَّهُمَّ إِنِّي أَعُوذُ بِكَ أَنْ أَضِلَّ أَوْ أُضَلَّ، أَوْ أَزِلَّ أَوْ أُزَلَّ، أَوْ أَظْلِمَ أَوْ أُظْلَمَ، أَوْ أَجْهَلَ أَوْ يُجْهَلَ عَلَيَّ
O Allah, I seek refuge in You from going astray or being led astray, from slipping or being made to slip, from wronging or being wronged, and from acting foolishly or being treated foolishly.
Leaving the home, Narrated by Abu Dawud and al-Tirmidhi and al-Nasa’i and Ibn Majah