The Messenger of Allah said: "None of you should fail to say, when he enters his toilet: 'Allahumma inni a`udhu bika minar-rijsin-najis, al-khabithil-mukhbith, ash-Shaitanir-rajim (O Allah, I seek refuge with You from the filthy and impure, the evil one with evil companions, the accursed Shaitan).'" (Da'if)
Another chain with a slightly different wording from Ibn Abi Maryam who mentioned similar, but he did not say in his narration: "Minar-rijsin-najis (From the filthy and the impure)" he only said: "Minal-khabithil-mukhbith, ash-Shaitanir-rajim (From the evil one with evil companions, the accursed Shaitan)."
Sunan Ibn Majah Book 1, Hadith 33
The people used to ask Allah's Messenger (ﷺ) about good, but I used to ask him about evil for fear that it
might overtake me. Once I said, "O Allah's Messenger (ﷺ)! We were in ignorance and in evil and Allah has
bestowed upon us the present good; will there by any evil after this good?" He said, "Yes." I asked,
"Will there be good after that evil?" He said, "Yes, but it would be tained with Dakhan (i.e. Little
evil)." I asked, "What will its Dakhan be?" He said, "There will be some people who will lead
(people) according to principles other than my tradition. You will see their actions and disapprove of
them." I said, "Will there by any evil after that good?" He said, "Yes, there will be some people who
will invite others to the doors of Hell, and whoever accepts their invitation to it will be thrown in it
(by them)." I said, "O Allah's Messenger (ﷺ)! Describe those people to us." He said, "They will belong to us
and speak our language" I asked, "What do you order me to do if such a thing should take place in my
life?" He said, "Adhere to the group of Muslims and their Chief." I asked, "If there is neither a group
(of Muslims) nor a chief (what shall I do)?" He said, "Keep away from all those different sects, even if
you had to bite (i.e. eat) the root of a tree, till you meet Allah while you are still in that state."
Sahih al-Bukhari Book 61, Hadith 113
“There is no Muslim who is
stricken
with a calamity and reacts by saying as Allah has commanded:
‘Inna
lillahi, wa inna ilayhi raji’un. Allahumma indaka ahtasabtu
musibati, fajurni fiha, wa ‘awwidni minha (Truly, to Allah we belong
and truly, to Him we shall return. O Allah, with You I seek reward
for
my calamity, so reward me for it and compensate me),’ but Allah
will
reward him for that and compensate him with something better
than it.”
She said: “When Abu Salamah died, I remembered what he
had told me
from the Messenger of Allah (ﷺ) and I said: ‘Inna
lillahi, wa inna
ilayhi raji’un. Allahumma indaka ahtasabtu
musibati, fajurni alaiha
(Truly, to Allah we belong and truly, to Him
we shall return. O Allah,
with You I seek reward for my calamity, so
reward me for it).’ But
when I wanted to say wa ‘awwidni minha
(and compensate me with
better), I said to myself: ‘How can I be
compensated with something
better than Abu Salamah?’ Then I said
it, and Allah compensated me
with Muhammad (ﷺ) and rewarded me for
my calamity.”
Sunan Ibn Majah Book 6, Hadith 166