حَدَّثَنَا خَلَفٌ ، حَدَّثَنَا أَبُو الْأَحْوَصِ ، عَنْ سِمَاكٍ ، عَنْ عِكْرِمَةَ ، عَنِ ابْنِ عَبَّاسٍ قَالَ : كَانَ رَسُولُ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - إِذَا أَرَادَ أَنْ يَخْرُجَ فِي سَفَرٍ قَالَ : اللَّهُمَّ أَنْتَ الصَّاحِبُ فِي السَّفَرِ ، وَالْخَلِيفَةُ فِي الْأَهْلِ ، اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الضُّبْنَةِ فِي السَّفَرِ ، وَالْكَآبَةِ فِي الْمُنْقَلَبِ ، اللَّهُمَّ اقْبِضْ لَنَا الْأَرْضَ ، وَهَوِّنْ عَلَيْنَا السَّفَرَ ، فَإِذَا أَرَادَ الرُّجُوعَ قَالَ : آيِبُونَ عَابِدُونَ لِرَبِّنَا حَامِدُونَ ، فَإِذَا دَخَلَ أَهْلَهُ قَالَ : تَوْبًا تَوْبًا ، لِرَبِّنَا أَوْبًا ، لَا يُغَادِرُ عَلَيْنَا حَوْبًا .
It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with him) that when the Messenger of Allah (peace and blessings be upon him) intended to set out on a journey, he would recite this supplication: 'Allahumma anta al-sahibu fi al-safar, wa al-khalifatu fi al-ahl. Allahumma inni a'udhu bika min al-dubnati fi al-safar, wa al-ka'abati fi al-munqalab. Allahumma iqbid lana al-ard, wa hawwin 'alayna al-safar' (O Allah, You are our Companion on the journey and the Guardian and Protector of the family left behind. O Allah, I seek refuge in You from the hardship and toil of the journey and from grief and sorrow upon return. O Allah, fold up the earth (its distance) for us and make the journey easy for us). Then when he (peace and blessings be upon him) intended to return, he would say these words: 'Ayibuna 'abiduna li-rabbina hamidun' (We are returning, worshipping, and praising our Lord alone). And when he (peace and blessings be upon him) came to his family, he would say: 'Tawban tawban, li-rabbina awban, la yughadiru 'alayna hawban' (We repent, we repent, turning back to our Lord in repentance, a repentance that leaves no sin upon us).
Related hadith on this topic