Abu Huraira said that when the Prophet congratulated* a man on his marriage he said, “God bless you, bless you both, and prosper your union.”
*The verb used is raffa'a which originally meant saying to someone who had just been married, "may the marriage produce close union and sons." It is said that because this was a phrase used in pre-lslamic times, the Prophet substituted for it the words used in this tradition. The verb thus develops simply the meaning of congratulating without in itself involving any particular formula.
Ahmad, Tirmidhi, Abu Dawud and Ibn Majah transmitted it.
Abu Malik al-Ash'ari reported God's messenger as saying that when a man goes into his house he should say, “O God, I ask Thee for good both when entering and when going out; in the name of God we have entered and in God our Lord do we trust.” He should then greet his family.
'Amr b. Shu'aib, on his father’s authority, said his grandfather told how the Prophet said that when anyone of them married a woman, or bought a servant he should say, “O God, I ask Thee for the good in her and in the disposition Thou hast given her, and I seek refuge in Thee from the evil in her and in the disposition Thou hast given her.” When he buys a camel he should take hold of the top of its hump and say the same kind of thing. In a version regarding a woman and a servant it says he should take hold of her forelock and make supplication for a blessing.
Anas reported God’s messenger as saying that when a man goes out of his house and says, "In the name of God; I trust in God; there is no might and no power but in God," the following will be said to him at that time, "You are guided, defended and protected." The devil will go far from him and another devil will say, "How can you deal with a man who has been guided, defended and protected?"
Abu Dawud transmitted it, and Tirmidhi transmitted up to “the devil will go far from him."