It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that when the Prophet (peace and blessings be upon him) intended to set out on a journey, he would recite this supplication: «اَللّٰهُمَّأَنْتَالصَّاحِبُفِيالسَّفَرِوَالْخَلِيفَةُفِيالْأَهْلِاَللّٰهُمَّإِنِّيأَعُوذُبِكَمِنْالضُّبْنَةِفِيالسَّفَرِوَالْكَآبَةِفِيالْمُنْقَلَبِاَللّٰهُمَّاطْوِلَنَاالْأَرْضَوَهَوِّنْعَلَيْنَاالسَّفَرَ» "O Allah! You are my companion in travel and the guardian of my family in my absence. O Allah! I seek refuge with You from the hardship of travel and distress on return. O Allah! Fold the earth for us and make this journey easy for us." And when he intended to return, he would recite this supplication: «آيِبُونَتَائِبُونَعَابِدُونَلِرَبِّنَاحَامِدُونَ» "We are returning with repentance, worshipping, and giving thanks to our Lord." And when he reached his family, he would say: «تَوْبًاتَوْبًالِرَبِّنَاأَوْبًالَايُغَادِرُعَلَيْنَاحَوْبًا» "We repent, turn to our Lord, and ask that He leaves no sin upon us."
Hadith Referenceمسند احمد / ومن مسند بني هاشم / 2311
Hadith Gradingحکم دارالسلام:حسن لغيره، وهذا إسناد ضعيف، سماك عن عكرمة مضطرب