The Prophet ﷺ said, "When a man leaves his house and says, 'In the name of Allah, I place my trust in Allah, there is no power and no strength except through Allah,' it is said to him at that moment, 'You have been guided, sufficed, and protected,' and the devils move aside from him. Then another devil says to his companion, 'What can you do with a man who has been guided, sufficed, and protected?'"
حدثنا إبراهيم بن الحسن الخثعمي حدثنا حجاج بن محمد عن ابن جريج عن إسحق بن عبد الله بن أبي طلحة
أن النبي ﷺ قال إذا خرج الرجل من بيته فقال بسم الله توكلت على الله لا حول ولا قوة إلا بالله قال يقال حينئذ هديت وكفيت ووقيت فتتنحى له الشياطين فيقول له شيطان آخر كيف لك برجل قد هدي وكفي ووقي
Its isnad is daif. Tirmidhi transmitted it in the Book of Supplications, chapter on what is said when leaving one's house, hadith 3426, from the hadith of Ibn Jurayj with this chain, using "an" in transmission. It occurs in Mawarid Zaman, hadith 2375, but this is an error, and the correct reference is what appears in Ihsan, hadith 819.