Skip to content

    Prayer & Purity

    Dua for Entering and Leaving the Bathroom

    The dua before entering the toilet, Allahumma inni a'udhu bika minal-khubuthi wal-khaba'ith, the one word to say when you leave, Ghufranak, and the basic bathroom manners every new Muslim asks about.

    Al Hidayah Institute7 min read

    Two clean white sinks with dark taps in a bathroom
    On this page

    Before entering the bathroom, say Allahumma inni a'udhu bika minal-khubuthi wal-khaba'ith: "O Allah, I seek refuge in You from the male and female evil ones." When you come out, say Ghufranak: "I ask Your forgiveness." Both come from authentic hadith (Sahih al-Bukhari 142 and Sunan Abi Dawud 30). Say the first one before you go in, not once you're inside.

    That's the whole of it as far as the duas go. Below you'll find the Arabic and what the words mean, why the dua is said at the door, and the practical side that new Muslims usually want to ask about but don't: cleaning yourself with water (istinja), which hand to use, which way to face, and whether the bathroom in your flat is a problem.

    The dua before entering the bathroom

    Whenever the Prophet (ﷺ) went to answer the call of nature, he used to say, "Allah-umma inni a`udhu bika minal khubuthi wal khaba'ith i.e. O Allah, I seek Refuge with You from all offensive and wicked things (evil deeds and evil spirits).

    Sahih al-Bukhari 142Sahih

    Narrated by Anas ibn Malik.

    Al-khubuth and al-khaba'ith are two plurals of the word for "foul" or "wicked". Scholars have explained them two ways: as the male and female devils, or as evil and wicked things in general. The translation on sunnah.com folds both in. Either way, you're asking Allah to protect you in a place where you're exposed and not remembering Him.

    Say it at the door

    Al-Bukhari also records a wording of this hadith that says "when he intended to enter", which is why scholars teach saying it before you step in. Inside, you avoid saying Allah's name or reciting Quran. If you've forgotten and you're already in, most scholars say you can say it in your heart.

    What about Bismillah?

    You'll see "Bismillah" added before the dua in many books and apps. It comes from a hadith in Jami' at-Tirmidhi (606) about Bismillah being a screen from the jinn when entering the toilet, but Darussalam's editors grade that report weak (da'if). Saying Bismillah before something is never wrong in itself, so many people do say it. The dua from Sahih al-Bukhari above is the part that's firmly established.

    The dua when leaving the toilet

    When the Prophet (ﷺ) came out of the privy, he used to say: "Grant me Thy forgiveness."

    Sunan Abi Dawud 30Sahih

    Narrated by 'A'ishah. Graded sahih (al-Albani).

    It's one word. Scholars have offered a few reasons for asking forgiveness at this exact moment. One is that you've spent a few minutes not remembering Allah, and this is how you come back to it. Another is gratitude: the body has taken what it needs from food and let go of the rest, a blessing people only notice when it stops working, and saying "forgive me" admits you can't thank Him enough for it.

    You may also see Alhamdu lillahil-ladhi adhhaba 'annil-adha wa 'afani, "Praise be to Allah who removed the harm from me and gave me health", given as the leaving dua. It's in Sunan Ibn Majah (301), but Darussalam's editors grade it weak (da'if). Ghufranak is authentic, and it's enough.

    Left foot in, right foot out

    The common practice is to step into the bathroom with your left foot and leave with your right. There isn't a specific hadith that says "left foot into the toilet". Scholars took it from a general rule in the Prophet's habits:

    The Prophet (ﷺ) used to start every thing from the right (for good things) whenever it was possible in all his affairs; for example: in washing, combing or wearing shoes.

    Sahih al-Bukhari 426Sahih

    Narrated by 'A'ishah.

    The right is used for honorable things, like entering the mosque, eating and putting on clothes, and the left for the opposite, like entering the bathroom and taking clothes off. So it's a recommended manner, not a condition. If you go in on the wrong foot, nothing is spoiled.

    Istinja: cleaning yourself after the toilet

    This is the part many new Muslims feel awkward about, and the Companions were asked about it too. Someone once mocked Salman al-Farisi for it, and he answered without embarrassment:

    Your Apostle (ﷺ) teaches you about everything, even about excrement. He replied: Yes, he has forbidden us to face the Qibla at the time of excretion or urination, or cleansing with right hand or with less than three pebbles, or with dung or bone.

    Sahih Muslim 262aSahih

    Narrated by Salman al-Farisi.

    Istinja means cleaning the private parts with water after using the toilet. Using stones or tissue is called istijmar. The Prophet ﷺ used water:

    Whenever Allah's Messenger (ﷺ) went to answer the call of nature, I along with another boy used to accompany him with a tumbler full of water.

    Sahih al-Bukhari 150Sahih

    Narrated by Anas ibn Malik. Shortened.

    In practice, at home:

    1. Use your left hand to clean, never the right.
    2. Wash with water until the area is clean. A small jug, a bottle, a bidet or a handheld spray (often called a shattaf) all work.
    3. If you use tissue on its own, wipe an odd number of times, at least three, until you're clean. That's valid too, even when water is available.
    4. Many scholars say tissue first and then water is best of all.
    5. Wash your hands well with soap afterwards.

    Many new Muslims keep a small watering can or bottle next to the toilet at home, and a travel bottle in their bag for work. That's completely normal, and you'll see it in a lot of Muslim homes.

    Be careful about drops of urine on your body or clothes. The Prophet ﷺ passed two graves and said one of the two was being punished because "one of them never saved himself from being soiled with his urine" (Sahih al-Bukhari 216). It's not meant to make you anxious. Just make sure you're clean before you stand up. If you often find yourself worrying about whether you're clean enough, that's a common worry for new Muslims, and it's worth talking it through with your imam.

    A few more bathroom manners

    • Don't face or turn your back to the qibla when relieving yourself, as in the Salman hadith above. Scholars differ on whether this applies inside a building where there's a wall between you and the qibla; many say it's allowed indoors. If your toilet already faces that way and you can't change it, sit at a slight angle where you can.
    • Don't take the Quran in. If you have something with Allah's name on it, like a necklace, cover it or leave it outside. A phone with a Quran app is a different matter; many scholars allow it in your pocket.
    • Don't speak unnecessarily while you're using the toilet.
    • Cover yourself. Modesty applies even in private.

    Bathroom and wudu

    Using the toilet breaks wudu, so if you go before a prayer, you'll need to make wudu again. Our step-by-step wudu guide walks you through it. The free Purity: Wudu, Ghusl and Taharah course covers istinja, wudu and ghusl together, with the details you'll need for prayer.

    For more everyday duas like these, see our duas page and our beginner's guide to how to make dua.

    Take the free Purity course

    Questions people ask

    What is the dua before entering the toilet?

    Allahumma inni a'udhu bika minal-khubuthi wal-khaba'ith: "O Allah, I seek refuge in You from the male and female evil ones" (Sahih al-Bukhari 142). Say it before you go in.

    What is the dua when leaving the toilet?

    Ghufranak, "I ask Your forgiveness" (Sunan Abi Dawud 30, Jami' at-Tirmidhi 7, both graded sahih).

    Can I say the bathroom dua inside the bathroom?

    It's meant to be said before you enter. If you forget and you're already inside, many scholars say to say it in your heart.

    Which foot do I enter the bathroom with?

    The left, and you leave with the right. Scholars took this from the Prophet's habit of using the right for good things (Sahih al-Bukhari 426). It's a recommended manner, not a requirement.

    Is it necessary to wash with water after using the toilet?

    Cleaning is required. Water is best and is what the Prophet ﷺ used (Sahih al-Bukhari 150). Wiping with tissue or stones at least three times until clean is also valid.

    Can I take my phone into the bathroom if it has the Quran on it?

    Many scholars allow it, since the app isn't open and it isn't a mushaf. Don't recite from it in there.

    Written by

    Al Hidayah Institute

    The teaching team at Al Hidayah Institute.

    Discussion

    Questions and reflections are welcome. Be kind; our team reads along.

    Sign in to join the discussion.

    No comments yet. If something here raised a question, ask it.

    A row of brass taps along the marble wall of a mosque ablution area

    Dua Before and After Wudu

    Before wudu you say Bismillah. After it, the shahada: Ash-hadu an la ilaha illallah wahdahu la sharika lah. The Arabic, the meaning, the reward, and which popular wudu duas aren't authentic.

    A carved stone archway and doors at the entrance of a historic mosque

    Dua for Entering and Leaving the Masjid

    Entering the masjid: send salam on the Prophet ﷺ and say Allahumma-ftah li abwaba rahmatik. Leaving: Allahumma inni as'aluka min fadlik. The Arabic, meanings, sources and the manners that go with them.

    An open Quran on a wooden stand inside a mosque, with tall windows behind it

    Surah Al-Fatihah Meaning: Ayah by Ayah

    Al-Fatihah is the seven-ayah opening of the Quran that every Muslim recites in every rak'ah. Here's the Arabic, transliteration and English, what each ayah means, how Allah answers it in the prayer, and its authentic virtues.