Dua Guide

Dua for Entering the Masjid: Arabic, Meaning, and Etiquette

The Niyyara TeamAugust 13, 202619 min read

The dua for entering the masjid is short, well known, and easy to memorize in a single sitting: Allahumma iftah li abwaba rahmatik, "O Allah, open the gates of Your mercy for me." This guide gives you that dua and its matching dua for leaving in Arabic, transliteration, and meaning, along with the everyday etiquette that goes with them, the right foot at the door, the two rak'ahs of Tahiyyat al-Masjid before you sit, and the wider adab of stepping into the house of Allah.

Learn duas like this one, at your own pace

Niyyara is a free, private, ad-free companion with a full library of everyday duas, accurate prayer times, the azan, an exact Qibla compass, and the complete Quran with audio. No subscriptions, no ads, ever.

What's in this guide

  1. The dua for entering the masjid
  2. The dua for leaving the masjid
  3. Why the entering and leaving duas are different
  4. Right foot in, left foot out: the doorway etiquette
  5. Tahiyyat al-Masjid: the two rak'ahs before you sit
  6. The fuller version with salawat, and an honest note on its source
  7. General adab once you are inside the masjid
  8. Common questions and mistakes beginners have
  9. How Niyyara helps you learn duas like this

The dua for entering the masjid

The masjid, the mosque, is described in the Quran and the life of the Prophet Muhammad, peace be upon him, as one of the most beloved places on earth to Allah, and Muslims are taught to enter it with a short spoken reminder of why they have come. That reminder is the dua for entering the masjid, and it is one of the easiest duas in the whole tradition to learn, because it is a single short sentence.

ArabicTransliterationMeaning
اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَAllahumma iftah li abwaba rahmatikO Allah, open the gates of Your mercy for me.

This wording is recorded in Sahih Muslim, in a hadith where a companion of the Prophet relates what he was taught to say upon entering the mosque. It is short enough to say in the time it takes to cross the threshold, and it carries a complete idea in a handful of words: you are stepping into a place built for worship, and you are asking Allah to let His mercy meet you there.

Say it quietly to yourself as you step through the door, ideally leading with your right foot, which we cover in more detail further down. There is no need to raise your voice or make a show of it. A short, sincere phrase said under your breath, with your heart present, is exactly what this dua is for.

Some people like to break the phrase down while memorizing it, word by word: Allahumma is the vocative "O Allah," iftah is a command form meaning "open," li means "for me," abwaba means "the gates" or "the doors," rahmatik means "Your mercy." Put together, you are asking your Lord, by name, to open the doors of His mercy specifically for you, at the very moment you are walking into His house. Once you see the words this way, it becomes far easier to hold onto and much harder to forget.

The one-line version

Say Allahumma iftah li abwaba rahmatik, "O Allah, open the gates of Your mercy for me," as you step into the masjid, ideally with your right foot first.

The dua for leaving the masjid

Just as there is a dua for entering the masjid, there is a matching dua for the moment you leave it, and the two are taught together in the same hadith in Sahih Muslim. Where the entering dua asks for mercy, the leaving dua asks for something slightly different: Allah's bounty, meaning His provision and favor as you head back out into the world.

ArabicTransliterationMeaning
اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَAllahumma inni as'aluka min fadlikO Allah, I ask You from Your bounty.

Word by word, Allahumma is again "O Allah," inni means "indeed I," as'aluka means "I ask You," min fadlik means "from Your bounty" or "from Your favor." The whole phrase is a single, humble request: as you leave the masjid and return to your daily life, your work, your errands, your home, you are asking Allah to accompany that return with His provision and grace.

Say this dua as you exit, ideally stepping out with your left foot after having entered with your right. It only takes a second, and once the entering dua is memorized, the leaving dua is easy to pick up right after it, since the sentence structure is almost identical and only the closing word changes.

Together these two duas form a small, complete ritual around every single visit to the masjid, whether that visit is for one of the five daily prayers, a Friday khutbah, a class, or simply to sit and make dhikr for a few minutes. You open your visit by asking for mercy, and you close it by asking for provision, framing an ordinary trip to the mosque as an act of worship from the very first step to the very last.

The one-line version

Say Allahumma inni as'aluka min fadlik, "O Allah, I ask You from Your bounty," as you step back out of the masjid, ideally with your left foot first.

Why the entering and leaving duas are different

It is worth pausing on why these two duas ask for different things, because the distinction is not accidental and it helps the words stick in your memory far better than rote repetition alone.

When you enter the masjid, you are stepping toward Allah in a focused, deliberate act of worship. The natural request at that moment is mercy, rahmah, the quality that draws a servant closer to their Lord and forgives their shortcomings. You are, in a sense, walking through a doorway built for exactly that purpose, and the dua names what you hope to find on the other side.

When you leave the masjid, you are stepping back out into ordinary life, toward work, family, errands, and the countless small transactions of a normal day. The natural request at that moment is fadl, bounty or favor, the provision and ease that Allah grants a person as they go about earning a living and meeting their responsibilities. The Quran itself uses this same word, fadl, in places that speak of seeking Allah's provision after finishing an act of worship, most famously after the Friday prayer, where believers are told to disperse in the land and seek of Allah's bounty (see Surah Al-Jumuah, chapter 62).

Seen together, the two duas map a believer's rhythm through the day: enter seeking closeness and mercy, leave seeking sustenance and favor, and repeat that rhythm five times a day, or more, for as long as you live. It is a small structure, but it is a meaningful one, and it is part of why so many scholars encourage memorizing both duas as a pair rather than just the entering line alone.

Never lose track of a dua again

Niyyara keeps a searchable library of everyday duas, each with Arabic, transliteration, and meaning, so you can review this one before your next visit to the masjid. Free, private, and ad-free.

Right foot in, left foot out: the doorway etiquette

Alongside the words, there is a small physical habit that many Muslims are taught to pair with entering and leaving the masjid: step in with the right foot, and step out with the left foot. It is a tiny detail, but it comes from a real and well documented pattern in how the Prophet Muhammad, peace be upon him, approached his daily life.

Aisha, may Allah be pleased with her, reported that the Prophet loved to begin with the right side in all of his affairs wherever possible: in his purification, in combing his hair, and in putting on his sandals. This general principle is recorded in Sahih al-Bukhari and Sahih Muslim, two of the most rigorously verified hadith collections in Islam, and it is one of the clearest, best attested habits of the Prophet's daily life. From this general principle, generations of scholars and teachers have extended the same habit to good and honorable actions more broadly, including entering blessed places such as the masjid with the right foot, and leaving less honored places, such as leaving a mosque back into the street, or entering a bathroom, with the left.

It is worth being honest about the sourcing here, in keeping with this guide's aim of never overstating what is and is not firmly established. The broad principle, preferring the right hand and foot for good and praiseworthy actions, rests on strong, widely accepted hadith. Some of the narrations that describe the masjid doorway specifically are cited by later scholars and teachers as an application of that principle, and their individual chains are, in places, less strongly graded than the Aisha narration above. None of this should worry you. Leading with the right foot into the masjid and the left foot out is a widely taught, gentle, well intentioned habit that the overwhelming majority of Muslims practice, and it does no harm to follow it. If you want the precise grading of every individual narration on this specific point, that is a question worth asking a qualified teacher or scholar directly.

In practice, this is simple to build into your routine. As you approach the masjid door, notice which foot naturally leads, and if it happens to be the left, take a small half step to bring the right foot forward first as you cross the threshold. It becomes automatic within a week or two of paying attention to it, and it turns the physical act of walking through a door into a small, conscious act of worship, paired naturally with saying Allahumma iftah li abwaba rahmatik in that same moment.

The doorway habit at a glance

  • Step in with your right foot, saying Allahumma iftah li abwaba rahmatik.
  • Step out with your left foot, saying Allahumma inni as'aluka min fadlik.
  • The right-first habit comes from a well attested general Sunnah of preferring the right for good actions.
  • Treat the foot order as good, widely followed etiquette rather than a strict requirement.

Tahiyyat al-Masjid: the two rak'ahs before you sit

Once you are through the door, there is one more piece of etiquette that goes hand in hand with the entering dua, and it is a prayer rather than a spoken phrase. It is called Tahiyyat al-Masjid, literally "the greeting of the masjid," and the instruction behind it is direct and authentic: do not sit down until you have prayed two short rak'ahs.

This comes from a hadith of the companion Abu Qatada, recorded in both Sahih al-Bukhari and Sahih Muslim, in which the Prophet said that when one of you enters the mosque, he should not sit until he has prayed two rak'ahs. It is one of the more firmly established pieces of masjid etiquette in the entire tradition, which is exactly why it is taught so consistently across mosques and Muslim communities everywhere.

The two rak'ahs of Tahiyyat al-Masjid are prayed just like any other short prayer: face the Qibla, make the intention to pray Tahiyyat al-Masjid, say the opening takbir, recite Al-Fatihah and a short surah in each rak'ah, and complete the two rak'ahs with the tashahhud and salam. If you would like the full walkthrough of how a rak'ah works, our guide on how to pray in Islam covers every step in detail.

There are recognized exceptions where you are not expected to interrupt yourself to pray Tahiyyat al-Masjid, and knowing them will save you from an awkward moment:

Outside of these situations, make Tahiyyat al-Masjid a habit every time you walk into a mosque, even for a short visit. It takes less than two minutes, and it turns every entrance into an act of prayer rather than a passive arrival.

A gentle note on differences

Muslims follow several respected schools of jurisprudence, and the exact handling of Tahiyyat al-Masjid during disliked times, or the precise grading of some of the doorway narrations discussed in this guide, are places where scholars have documented, reasoned differences. This guide sticks to the widely agreed essentials. For rulings on your specific situation, follow the guidance of qualified scholars or a trusted local teacher.

The fuller version with salawat, and an honest note on its source

Beyond the short, well attested Sahih Muslim wording covered above, many Muslims also learn a longer version of the entering and leaving duas that opens with Bismillah and a salutation upon the Prophet before the request for mercy or bounty. This fuller version is commonly taught and is found in the collection of Ibn Majah.

ArabicTransliterationMeaning
بِسْمِ اللَّهِ وَالصَّلَاةُ وَالسَّلَامُ عَلَى رَسُولِ اللَّهِBismillahi was-salatu was-salamu ala RasulillahIn the name of Allah, and peace and blessings be upon the Messenger of Allah.

Said before entering, this opening line is followed by the same core request, Allahumma iftah li abwaba rahmatik. Said before leaving, it is followed by Allahumma inni as'aluka min fadlik, just as in the shorter version. Many people find that adding the Bismillah and salawat at the front feels natural, since beginning significant actions with the name of Allah and sending blessings on the Prophet is itself a well established and beautiful habit across Islamic daily life.

In the interest of accuracy, it is worth being transparent about the difference between the two versions. The short core phrase, Allahumma iftah li abwaba rahmatik and its matching Allahumma inni as'aluka min fadlik, comes from Sahih Muslim and is about as firmly established as a daily dua gets. The longer opening with Bismillah and salawat comes from a separate narration recorded in Ibn Majah, and like many narrations outside of Sahih al-Bukhari and Sahih Muslim, scholars have discussed its chain of transmission in more detail, with some grading it acceptable for practice and others holding a more cautious view. Neither position changes anything about the short core dua, which stands on its own as fully authentic. If you want certainty on which version to teach your children or recite publicly as a matter of course, ask a qualified scholar, and feel free to use either version sincerely in your own personal supplication in the meantime.

Build a habit of dua, one phrase at a time

Niyyara's dua library covers everyday moments like entering the masjid, waking up, traveling, and eating, each with Arabic, transliteration, and meaning, plus prayer times, Qibla, and the full Quran with audio. Free, private, and ad-free.

General adab once you are inside the masjid

The dua and the doorway habits set the tone for your visit, but the masjid comes with a broader set of manners, or adab, that shape how a considerate worshipper behaves once inside. None of this is complicated, and most of it is simply an extension of the same respect you show at the door.

Silence your phone and lower your voice

The masjid is a place of remembrance and prayer, and a ringing phone or a loud conversation breaks the atmosphere for everyone nearby. Silence your phone before you enter, and if you need to speak, keep your voice low, especially near people who are praying, reciting Quran, or sitting in quiet dhikr.

Do not walk in front of someone praying

If a person is praying, avoid crossing directly in front of them, in the space between them and where they are prostrating. Walk behind them, or around, whenever there is room to do so. This is a small courtesy that protects the concentration of someone in the middle of their prayer.

Keep the space clean and tidy

Take care of your shoes at the entrance, in the place provided for them, and be mindful of crumbs, wrappers, or clutter if you bring food or a bag inside. A clean masjid is easier for everyone to focus and pray in, and small acts of tidiness are a quiet form of respect for the space.

Mind strong smells before congregational prayer

There is a well known hadith in which the Prophet asked that a person who had eaten raw garlic or onion stay away from the mosque until the smell had passed, out of consideration for those praying nearby. The same courtesy extends today to strong smoke, perfume applied heavily enough to overwhelm others, or anything similar. A little awareness here goes a long way.

Save business and worldly transactions for outside

Islamic teaching discourages using the masjid as a place to conduct trade, advertise a sale, or chase down a lost item by making loud announcements. The mosque is set apart for worship, learning, and community, and worldly business is better handled at the door or outside entirely.

Use the waiting time well

If you arrive early for a prayer, the time before the iqamah is a good opportunity for dhikr, quiet Quran recitation, or extra voluntary prayer, rather than idle scrolling or chatting. Many people find that a masjid visit becomes far more rewarding once they start treating the minutes before and after the prayer itself as part of the worship, not just downtime.

Be a welcoming presence to newcomers

If you notice someone who looks unfamiliar with the space, whether a new Muslim, a visitor, or a guest exploring the faith, a warm greeting and a little patience goes further than any of the etiquette points above. The Prophet Muhammad, peace be upon him, was known for his gentleness with people who were new to something, and that spirit is very much at home in a mosque.

Common questions and mistakes beginners have

A few points trip up almost everyone the first time they start paying attention to masjid etiquette. None of them are serious, and knowing them ahead of time removes the guesswork.

  1. Trying to memorize everything at once. There is no need to learn the entering dua, the leaving dua, the fuller version, the right foot habit, and every point of masjid adab in one sitting. Start with the two short duas, Allahumma iftah li abwaba rahmatik and Allahumma inni as'aluka min fadlik. Everything else can be added gradually.
  2. Confusing the two duas. Because the two phrases are so similar in structure, it is common to mix up which one goes with entering and which with leaving in the first week or two. A simple memory trick: mercy, rahmah, is what you seek as you step toward worship, so it belongs at the entrance. Bounty, fadl, is what you seek as you step back into daily life, so it belongs at the exit.
  3. Sitting down out of habit before praying Tahiyyat al-Masjid. It is very easy to walk in, spot a friend, and sit down for a chat before remembering the two rak'ahs. If this happens, simply stand back up and pray them as soon as you notice, rather than skipping them for that visit.
  4. Worrying too much about the right foot. Some beginners get anxious about which foot led first and whether they "did it wrong." This is a gentle, recommended habit, not a strict condition for your visit or your prayer to count. Do your best, and let it become natural with practice.
  5. Feeling that Arabic fluency is required to say the dua. You do not need perfect pronunciation to say Allahumma iftah li abwaba rahmatik sincerely. Read it slowly from the transliteration for as long as you need to, and your fluency will improve the more often you say it.
  6. Assuming the dua only applies to your local mosque. The dua and the etiquette in this guide apply to any masjid, anywhere in the world, whether it is the mosque down the street, a mosque you are visiting while traveling, or even the Sacred Mosque in Mecca during Hajj or Umrah. The words and the habits travel with you.

As with learning to pray, the theme running through all of these is patience with yourself. Nobody arrives at a mosque already knowing every dua and every point of etiquette by heart. You learn one piece, practice it until it is automatic, and add the next. Within a month or two of paying attention, walking into and out of the masjid with the right words and the right habits will feel completely natural, and you will barely have to think about it.

How Niyyara helps you learn duas like this

Learning a dua like this one is easiest when you have it in front of you, in Arabic, transliteration, and meaning, ready to review right before you need it. That is exactly what Niyyara is built to help with, at no cost.

Niyyara is a free, private, ad-free companion for a practicing Muslim. It brings together a library of everyday duas, including the dua for entering the masjid and dozens of others for moments across the day, alongside accurate prayer times calculated for your exact location, the azan, an exact Qibla compass so you always know which way to face, the full Quran with audio to help your recitation, the 99 names of Allah, a digital tasbih for dhikr, the Islamic calendar, and a worship tracker to help you see your habits grow over time.

Because Niyyara is completely free, with no subscriptions and no ads, there is nothing standing between you and learning a dua like Allahumma iftah li abwaba rahmatik. Open it before you next visit the masjid, read the Arabic alongside the transliteration a few times, and say it as you step through the door. Small, consistent habits like this one are exactly how a person builds a life of worship, one short dua and one kept habit at a time. May Allah open the gates of His mercy for you every time you walk through that door.

Frequently asked questions

What is the dua for entering the masjid?

The well known dua for entering the masjid is Allahumma iftah li abwaba rahmatik, meaning O Allah, open the gates of Your mercy for me. It is recorded in Sahih Muslim on the authority of one of the Prophet's companions, who taught it as the words to say the moment you step inside. Many people also begin with Bismillah and send salawat on the Prophet before this line.

What is the dua for leaving the masjid?

When leaving the masjid, the matching dua is Allahumma inni as'aluka min fadlik, meaning O Allah, I ask You from Your bounty. It comes from the same authentic narration in Sahih Muslim as the entering dua, and the two are meant to be learned together, one word changing between them, mercy at the door in and bounty at the door out.

Do I really enter the masjid with my right foot and leave with my left?

It is well established from Sahih al-Bukhari and Sahih Muslim that the Prophet loved to begin with the right side in all his affairs, including putting on his sandals and washing in wudu, so many scholars teach leading with the right foot into good places, including the masjid, and the left foot when stepping out. Some of the narrations specific to the masjid doorway are less strongly graded than that general principle, so treat it as good, widely taught etiquette rather than a strict requirement, and ask a knowledgeable teacher if you want the fuller picture.

What is Tahiyyat al-Masjid and do I have to pray it every time I enter?

Tahiyyat al-Masjid is the sunnah of praying two short rak'ahs before sitting down whenever you enter a mosque, based on an authentic hadith in Sahih al-Bukhari and Sahih Muslim where the Prophet instructed a companion not to sit until he had prayed two rak'ahs. It is recommended each time you enter, with recognized exceptions, such as when the obligatory prayer is about to begin, during the Friday khutbah, or at certain disliked times for voluntary prayer. Because those exceptions involve some detail, it is best to learn them from a qualified teacher for your local practice.

Is it okay to say the dua for entering the masjid in English instead of Arabic?

Yes. Unlike the fixed Arabic recitation inside the prayer itself, everyday duas like this one are personal supplication, and there is nothing wrong with saying the meaning in your own language while you are still learning the Arabic. Many beginners say it in English at first and add the Arabic gradually, a few words at a time, until the short phrase is memorized. What matters most is that you turn your heart to Allah as you step through the door.

What if I forget the dua or arrive right as the prayer is starting?

Do not worry about it. The dua and the two rak'ahs of Tahiyyat al-Masjid are both sunnah, not obligatory, so if the iqamah is being called or the congregation is already standing, join the obligatory prayer straight away rather than stopping to pray Tahiyyat al-Masjid or recite the full dua first. You can say the dua quietly and briefly as you walk in, or simply form the intention in your heart and let it become a habit for next time. Missing it once is not a sin, and showing up for the prayer is what matters most.

Every dua, in one free app

Niyyara gives you the dua for entering the masjid and dozens more, each with Arabic, transliteration, and meaning, plus accurate prayer times, the azan, and an exact Qibla, all free and ad-free. Learn one dua at a time and watch the habit grow.

The Niyyara Team

We build Niyyara, a free, private, ad-free worship companion with prayer times, the full Quran, Qibla, azan, duas, and more. Niyyara is a product of Four Cents. For religious rulings, always follow the guidance of qualified scholars.