Whenever the Messenger of Allah ﷺ set out on a journey, he would say, "O Allah, I seek refuge in You from the hardships of travel, from a sorrowful return, from regression after progress, from the supplication of the wronged, and from finding distress in my family and property upon my return."
أخبرنا أزهر بن جميل قال حدثنا خالد بن الحارث قال حدثنا شعبة عن عاصم
أن رسول الله ﷺ كان إذا سافر قال اللهم إني أعوذ بك من وعثاء السفر وكآبة المنقلب والحور بعد الكور ودعوة المظلوم وسوء المنظر في الأهل والمال
Reported by Muslim, Hajj, chapter on what one says when mounting to travel for Hajj or otherwise, hadith 1343, from the hadith of Asim al-Ahwal by this same route, and it is in Al-Kubra, hadith 7935.