Whenever the Prophet ﷺ left his home, he would say, "Allah, I seek refuge in You from going astray or slipping, from wronging others or being wronged, and from acting ignorantly or being treated with ignorance."
حدثنا أبو بكر بن أبي شيبة حدثنا عبيدة بن حميد عن منصور عن الشعبي
أن النبي ﷺ كان إذا خرج من منزله قال اللهم إني أعوذ بك أن أضل أو أزل أو أظلم أو أظلم أو أجهل أو يجهل علي
[Its chain is daif] Abu Dawud narrated it in the Book of Manners, Chapter on what one says upon leaving his house, no. 5094, from the hadith of Mansur, with this same wording. Tirmidhi said regarding no. 3427, hasan sahih.Shaybi did not hear from her, according to the more correct view.