Dua Before Entering And Leaving Toilet
What is the dua before entering the toilet? It is: “Allaahumma innee a’oodhu bika minal-khubuthi wal-khabaa’ith” — “O Allah, I seek refuge with You from all offensive and wicked things” (Sahih al-Bukhari 142). And when leaving, the Prophet (peace and blessings be upon him) used to say a single word: “Ghufraanak” — “I seek Your forgiveness” (Jami’ at-Tirmidhi 7). These are two of the shortest duas the Prophet taught, and they cover an act every person does every day. This guide gives both duas in Arabic with transliteration and meaning, explains why we say them, and sets out the etiquette the Sunnah teaches for the toilet.
Key Points
- The dua before entering the toilet is “Allaahumma innee a’oodhu bika minal-khubuthi wal-khabaa’ith” — “O Allah, I seek refuge with You from all offensive and wicked things” (Sahih al-Bukhari 142).
- The dua when leaving is a single word: “Ghufraanak” — “I seek Your forgiveness” (Jami’ at-Tirmidhi 7; also Sunan Ibn Majah 300, Sahih).
- Say the entering dua BEFORE stepping in, not after you are already inside.
- The toilet is a place where the devils are present, so seeking refuge is the reason for the dua.
- In an open space, do not face or turn your back towards the Qiblah (Sahih al-Bukhari 144).
- No words of Allah’s name are spoken inside the toilet — the duas belong at the door, before entering and after leaving.
What Is the Dua Before Entering the Toilet?
Anas (may Allah be pleased with him) reported that whenever the Prophet (peace and blessings be upon him) went to answer the call of nature, he used to say:
Arabic:
اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْخُبُثِ وَالْخَبَائِثِ
Transliteration:
Allaahumma innee a’oodhu bika minal-khubuthi wal-khabaa’ith.
Translation:
“O Allah, I seek refuge with You from all offensive and wicked things (evil deeds and evil spirits).” (Sahih al-Bukhari 142)
Learn it in Arabic with its meaning, and say it before you step inside — at the door, not after you are already in. The dua asks Allah for refuge from “al-khubuth wal-khaba’ith”: scholars explain these words as the male and female devils, and also as evil deeds and evil spirits. Either way, the meaning is the same: the toilet is a place where impure things gather, and the believer asks Allah’s protection before entering it. Say it every time, even at home: the Prophet’s practice was for every visit, not only for unfamiliar places.
What Is the Dua When Leaving the Toilet?
Aisha (may Allah be pleased with her) said that when the Prophet (peace and blessings be upon him) exited the toilet, he would say:
Arabic:
غُفْرَانَكَ
Transliteration:
Ghufraanak.
Translation:
“I seek Your forgiveness.” (Jami’ at-Tirmidhi 7 — Hasan Gharib; the same wording is reported in Sunan Ibn Majah 300, graded Sahih.)
One word — “Ghufraanak” — “I seek Your forgiveness.” Why ask for forgiveness after something so ordinary? Scholars give two explanations, and both are worth knowing. First, we ask forgiveness because we were unable to remember Allah while inside, since His name is not mentioned in such a place. Second, we ask forgiveness as thanks: Allah has removed from us something harmful, and we could not have done it without His blessing. Either way, the dua turns an everyday act into remembrance: we enter seeking refuge, and we leave seeking forgiveness.
Why Do We Seek Refuge Before Entering?
The toilet is a place of impurity, and the hadiths teach that devils are present in such places. That is why the Prophet (peace and blessings be upon him) taught a dua of refuge for this moment, just as he taught duas of refuge for other moments of vulnerability — before sleep, when entering the mosque, and when travelling. The protection comes from Allah, and the dua is how we ask for it. One more point, stated honestly: a narration says that saying “Bismillah” is a screen between the eyes of the jinn and a person’s nakedness when entering the toilet (Jami’ at-Tirmidhi 606) — but that narration is graded weak (Da’if, Darussalam), so it is mentioned here only as a weak report, not as a firmly established teaching. The firmly established practice is the Bukhari 142 dua above: say it, and trust in Allah’s protection.
What Etiquette Does the Sunnah Teach for the Toilet?
The duas are the heart of the teaching, and a few points of etiquette go with them. In an open space, do not face the Qiblah or turn your back to it while relieving yourself — the Prophet (peace and blessings be upon him) said to face east or west instead (Sahih al-Bukhari 144). Inside a building, the walls screen you, and scholars discuss the details — but the respect for the Qiblah is the principle to keep. Do not mention Allah’s name, recite Qur’an, or talk unnecessarily while inside; the duas are said at the door, before entering and after leaving. Enter with the left foot and leave with the right, as scholars teach from the general Sunnah of beginning with the right for honourable things and the left for the toilet. Clean yourself properly afterwards — washing with water is the Sunnah — and wash your hands. For the ablution that follows, see our guide to the dua before and after wudu, and for the dua of entering the mosque, see our guide to the dua for entering and leaving the masjid.
How Can I Teach These Duas to My Children?
These are among the easiest duas to teach, because they are short and used every day. Teach the entering dua first: repeat it with the child at the bathroom door for a week, a few words at a time, until they can say it alone. Then teach the leaving dua — one word, “Ghufraanak” — which even a small child can learn in a day. Explain the meaning in simple words: “Before we go in, we ask Allah to protect us. When we come out, we say sorry to Allah and thank Him.” Do not scold a child for forgetting; remind them gently at the door, and the habit will form. A small chart on the bathroom door with the two duas written out can help the whole family remember.
Conclusion
Two short duas cover one of the most ordinary acts of the day: “Allaahumma innee a’oodhu bika minal-khubuthi wal-khabaa’ith” before entering, and “Ghufraanak” when leaving. Learn them, say them at the door every time, and teach them to your children. The Prophet (peace and blessings be upon him) left no part of life without guidance — not even this one — and that is itself a mercy: every moment of the day, even the most private, can begin with Allah’s name and end with His forgiveness.
Frequently Asked Questions
What is the dua before entering the toilet?
Allaahumma innee a’oodhu bika minal-khubuthi wal-khabaa’ith, meaning O Allah, I seek refuge with You from all offensive and wicked things (Sahih al-Bukhari 142).
What is the dua when leaving the toilet?
Ghufraanak, meaning I seek Your forgiveness (Jami’ at-Tirmidhi 7; also Sunan Ibn Majah 300, Sahih).
When do I say the entering dua, before or after stepping in?
Before stepping in, at the door, not after you are already inside.
Why do we say Ghufraanak after leaving the toilet?
Scholars explain it as seeking forgiveness for being unable to remember Allah inside, and as thanks for the removal of harm.
Can I say Bismillah before entering the toilet?
A narration about Bismillah as a screen exists (Jami’ at-Tirmidhi 606), but it is graded weak (Da’if), so it is not presented as a firmly established teaching; the established dua is Bukhari 142.
What should I not do inside the toilet?
Do not mention Allah’s name, recite Qur’an, or talk unnecessarily; in an open space do not face or turn your back to the Qiblah (Sahih al-Bukhari 144).
Also Read: Dua Before and After Wudu; Dua for Entering and Leaving the Masjid; Dua for Leaving and Entering the House; Ghusl for Major Impurity.
Sources/References: Sahih al-Bukhari; Jami’ at-Tirmidhi; Sunan Ibn Majah; Sunan Abi Dawud.
