Anas told that when God’s messenger went on an expedition he said, "O God, Thou art my aider and helper; by Thee I move, by Thee I attack, and by Thee I fight."
Umm Salama told that when the Prophet went out of his house he said, “In the name of God; I trust in God; O God, we seek refuge in Thee from slipping, or straying, or causing injustice, or suffering injustice, or doing wrong, or having wrong done to us."
Ahmad, Tirmidhi and Nasa'i transmitted it, Tirmidhi saying this is a hasan sahih tradition, In the version of Abu Dawud and Ibn Majah, Umm Salama said that God’s messenger never went out of her house without raising his eye to the sky and saying, “O God, I seek refuge in Thee lest I stray or lead others stray,* or cause injustice, or suffer injustice, or do wrong, or have wrong done to me.”
*Some read as above, but others read 'or be led astray'.
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.