Supplication when leaving the house #1
The Prophet (ﷺ) said whoever says the following when leaving his house:
بِسْمِ اللهِ ، تَوَكَّلْتُ عَلَى اللهِ وَلَا حَوْلَ وَلَا قُوَّةَ إِلَّا بِاللهِ
Bismillaah, tawakkaltu ‛alal-laah, wa laa ḥawla wa laa quwwata illaa billaah
"In the name of Allah, I place my trust in Allah and there is no might nor power except with Allah."
The following will be said to him at that time: "You are guided, defended and protected." The devils will go far from him and another devil will say: How can you deal with a man who has been guided, defended and protected?
(Sunan Abi Dawud 5095, Authenticated by Al Albani as Sahih)
Supplication when leaving the house #2
The Messenger of Allah (ﷺ) never went out of my house without raising his eye to the sky and saying:
اللَّهُمَّ إِنِّي أَعُوذُ بِكَ أَنْ أَضِلَّ أَوْ أُضَلَّ
أَوْ أَزِلَّ أَوْ أُزَلَّ أَوْ أَظْلِمَ أَوْ أُظْلَمَ أَوْ أَجْهَلَ أَوْ يُجْهَلَ عَلَىَّ
Allaahumma innee a‛oodhu bika an aḍilla aw uḍalla, aw azilla aw uzalla, aw adhlima aw udhlama, aw ajhala aw yujhala ‛alayy
O Allah! I seek refuge in You should I stray of be led astray, or slip or made to slip, or cause injustice, or suffer injustice, or do wrong, or have wrong done to me.
(Sunan Abi Dawud 5094, Authenticated by Al Albani as Sahih)