Dua for leaving home is recited while going outside of the house that helps you in protection from the evil eye, jinn, saitan, and, also, from the other tribulations of the world.
Narrated by Hazrat Anas Bin Malik (RA) that “Prophet Hazrat Mohammad (ﷺ) said the person who recited this dua while leaving his home, then it is said for him that.
Your sufficiency (kifayat) is done, your guardianship (rehnumai) is done and you have been saved, and then Saitan separates from him and says to his fellow disciples that.
What you can deteriorate or ruin to this person whose guardianship is done by Allah, his sufficiency is done and he is saved from every type of tribulation, you cannot do anything, my disciples.
Sunan Abu Dawud, Hadith No. 5095
Dua for Leaving Home
بِسْمِ اللَّهِ تَوَكَّلْـتُ عَلَى اللَّهِ، وَلاَ حَوْلَ وَلاَ قُـوَّةَ إِلاَّ بِاللَّهِ.
Bismil-lahi, Tawakkaltu Alal-lah, Wala Hawla Wala Quwwata Illa Billah
In the name of Allah, I place my trust (tawaqqul) in Allah, all potential and power are from Allah.

Also Read: 5 Best Magical Dua for Anxiety and Depression in English
Dua for Entering Home
بِسْـمِ اللّهِ وَلَجْنـَا، وَبِسْـمِ اللّهِ خَـرَجْنـَا، وَعَلَـى رَبِّنـَا تَوَكّلْـنَا.
Bismil-lahi Walajna, Wa Bismil-lahi Kharajna, Wa Ala Rabbina Tawakkalna.
In the name of Allah we enter and in the name of Allah we leave, and upon our Lord we place our trust.
Also Read: Dua for Travelling (Safar Ki Dua) in English for Safe Travel
Dua for Entering Masjid (Mosque)
اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ
Allaahum-maf Taḥ lee abwaaba Raḥmatika
O Allah, open the gates of Your mercy for me.
Dua for Leaving Masjid (Mosque)
اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ
Allaa-hum-ma Innee As’aluka min faḍ-lika
O Allah, I ask You from Your favour.