Abu Huraira told of a man who said, “Messenger of God, I intend to make a journey, so give me an injunction.” He told him to maintain fear of God and say “God is most great” on every rising ground, and when the man turned away he said, “O God, make the distance short for him and make the journey easy for him.”
Anas told of a man coming to the Prophet and saying, “Messenger of God, I intend to make a journey, so give me provisions.” He replied, “May God provide you with piety!” He asked for more, so he added, “And forgive your sin.” He said, “Say more, you for whom I would give my father and mother as ransom,” and he added, “And give you abundance of good wherever you are,”
Tirmidhi transmitted it, saying this is a hasan gharib tradition.
Ibn ‘Umar said that when God’s messenger was travelling and night came on he said, "O earth, my Lord and your Lord is God; I seek refuge in God from your evil, the evil of what you contain, the evil of what has been created in you, and the evil of what creeps upon you; I seek refuge in God from lions, from large black snakes, from other snakes, from scorpions, from the evil of jinn which inhabit a settlement and from a parent and his offspring."*
*This last phrase occurs in Qur’an, xc, 3 where it appears to be used in a straightforward sense; but in the tradition it is said to be a reference to lblis and his offspring of devils.
‘Abdallah al-Khatmi told that when God’s messenger wanted to commend an army he said, “I entrust to God your religion, what you are responsible for, and your final deeds.”