It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that when the Messenger of Allah (peace and blessings be upon him) intended to set out on a journey, he would recite this supplication: "O Allah! You are the Companion on the journey and the Guardian of the family. O Allah! I seek refuge in You from the toil and distress of the journey and from the grief of returning in a bad state. O Allah! Fold up the earth for us (that is, shorten the distance) and make the journey easy for us." Then when he returned, he would say: "We are returning, repenting, worshipping, praising our Lord." And when he reached his family, he would say: "We return again and again, repenting before our Lord; may it leave no sin upon us."
A supporting witness (shahid) for this hadith exists in Sahih Muslim, with similar meaning, in the narration of Ali al-Azdi (may Allah have mercy on him) from Sayyiduna Ibn Umar (may Allah be pleased with them both).
Abu Hatim al-Busti (may Allah have mercy on him) narrated it from Abu Ya'la al-Mawsili (may Allah have mercy on him), from Khalaf bin Hisham (may Allah have mercy on him), from Abu al-Ahwas (may Allah have mercy on him), likewise.