Abu Huraira reported God's messenger as saying, “When you hear the cocks crowing ask God for some of His grace, for they have seen an angel; but when you hear an ass braying seek refuge in God from the devil, for it has seen a devil.”
Two men reviled one another in the Prophet’s presence when we were sitting near him, and when one of them who had become red in the face reviled the other angrily the Prophet said that he knew a phrase by repeating which the man could get rid of his angry feelings: “I seek refuge in God from that accursed devil.” Those present asked the man whether he heard what the Prophet was saying, and he replied, “I am not possessed by a devil.”*
*Majnun. The word literally means to be possessed by a jinni, but it can also mean to be possessed by a devil. Shaitan is used in the preceding sentence. Majnun is also used meaning ‘mad’, but that does not fit this context.
Ibn ‘Umar said that when God’s messenger sat on his camel to go out on a journey, he said “God is most great” three times. Then he said, "Glory be to Him who has made this subservient to us, for we had not the strength for it, and to our Lord do we return. O God, we ask Thee in this journey of ours for uprightness, piety and such deeds as are pleasing to Thee. O God, make easy for us this journey of ours and make its length short for us. O God, Thou art the Companion in the journey and the One who looks after the family and the property in our absence. O God, I seek refuge in Thee from the difficulty of travelling, unhappiness in what I see, and finding harm has come when I return to my property and family." When he returned he said these words, adding, "Returning, repentant, serving and praising our Lord."
He told that God’s messenger used to say when he was anxious “There is no god but God, the Incomparably Great, the Clement; there is no god but God, the Lord of the mighty Throne; there is no god but God, the Lord of the heavens, the Lord of the earth, and the Lord of the noble Throne.”