
By Mohammed Basheer Orsala · Sources last checked 5 December 2026
These are the duas and words of remembrance the Prophet ﷺ said in and around the prayer, in the order you reach them: entering the masjid, the call to prayer, each position of the prayer, and the moments after it ends. Each one is given with its exact hadith reference and grade. This page covers what to say. It does not cover how to perform the prayer or the rulings on which words are required.
Entering and leaving the masjid
When you enter:
اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ
Allāhumma-ftaḥ lī abwāba raḥmatik.
Meaning: O Allah, open for me the gates of Your mercy.
When you leave:
اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ
Allāhumma innī as’aluka min faḍlik.
Meaning: O Allah, I ask You of Your bounty.
The Prophet ﷺ taught both in one hadith: “When one of you enters the masjid, let him say… and when he leaves, let him say…” (Sahih Muslim 713a).
When you hear the Adhan
Repeat what the caller says, send salawat on the Prophet ﷺ, then say the dua for al-Wasīlah. All five steps, with the Arabic and sources, are on the page Dua after the Adhan.
The opening dua (istiftāḥ): Subhanakallahumma wa bihamdika
After the opening takbir and before reciting Al-Fatihah, the Prophet ﷺ paused briefly. When Abu Hurayrah asked what he said in that pause, he replied with this dua (Sahih al-Bukhari 744):
اللَّهُمَّ بَاعِدْ بَيْنِي وَبَيْنَ خَطَايَاىَ كَمَا بَاعَدْتَ بَيْنَ الْمَشْرِقِ وَالْمَغْرِبِ، اللَّهُمَّ نَقِّنِي مِنَ الْخَطَايَا كَمَا يُنَقَّى الثَّوْبُ الأَبْيَضُ مِنَ الدَّنَسِ، اللَّهُمَّ اغْسِلْ خَطَايَاىَ بِالْمَاءِ وَالثَّلْجِ وَالْبَرَدِ
Allāhumma bā’id baynī wa bayna khaṭāyāya kamā bā’adta bayna l-mashriqi wa l-maghrib. Allāhumma naqqinī mina l-khaṭāyā kamā yunaqqā th-thawbu l-abyaḍu mina d-danas. Allāhumma-ghsil khaṭāyāya bi l-mā’i wa th-thalji wa l-barad.
Meaning: O Allah, put as much distance between me and my sins as You have put between the east and the west. O Allah, cleanse me of sins as a white garment is cleansed of dirt. O Allah, wash away my sins with water, snow and hail.
A shorter opening is reported from Aisha, who said the Prophet ﷺ said this when he began the prayer (Sunan Abi Dawud 776):
سُبْحَانَكَ اللَّهُمَّ وَبِحَمْدِكَ وَتَبَارَكَ اسْمُكَ وَتَعَالَى جَدُّكَ وَلاَ إِلَهَ غَيْرُكَ
Subḥānaka llāhumma wa bi-ḥamdika, wa tabāraka smuka, wa ta’ālā jadduka, wa lā ilāha ghayruk.
Meaning: Glory be to You, O Allah, and praise be to You. Blessed is Your name, exalted is Your majesty, and there is no god but You.
In ruku (bowing)
سُبْحَانَ رَبِّيَ الْعَظِيمِ
Subḥāna rabbiya l-‘aẓīm.
Meaning: Glory be to my Lord, the Magnificent.
Hudhayfah described praying with the Prophet ﷺ at night: when he bowed he said these words, and when he prostrated he said the words in the sujood section below (Sahih Muslim 772).
Rising from ruku: Sami’allahu liman hamidah, Rabbana lakal hamd
سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ
Sami’a llāhu liman ḥamidah.
Meaning: Allah hears the one who praises Him.
The Prophet ﷺ said this as he rose (Sahih Muslim 772). He told those praying behind an imam: when the imam says it, say (Sahih al-Bukhari 796):
اللَّهُمَّ رَبَّنَا لَكَ الْحَمْدُ
Allāhumma rabbanā laka l-ḥamd.
Meaning: O Allah, our Lord, to You belongs all praise.
In the same hadith he said that whoever’s words coincide with the words of the angels will have their past sins forgiven.
In sujood (prostration)
سُبْحَانَ رَبِّيَ الأَعْلَى
Subḥāna rabbiya l-a’lā.
Meaning: Glory be to my Lord, the Most High.
Source: Sahih Muslim 772, the same hadith of Hudhayfah.
Between the two prostrations: Rabbighfir li and Allahummaghfirli warhamni
رَبِّ اغْفِرْ لِي، رَبِّ اغْفِرْ لِي
Rabbi-ghfir lī, rabbi-ghfir lī.
Meaning: My Lord, forgive me. My Lord, forgive me.
Hudhayfah reported that the Prophet ﷺ said this between the two prostrations (Sunan Ibn Majah 897, graded sahih by Darussalam). A longer wording is reported from Ibn Abbas (Sunan Abi Dawud 850, graded hasan by al-Albani):
اللَّهُمَّ اغْفِرْ لِي وَارْحَمْنِي وَعَافِنِي وَاهْدِنِي وَارْزُقْنِي
Allāhumma-ghfir lī wa-rḥamnī wa ‘āfinī wa-hdinī wa-rzuqnī.
Meaning: O Allah, forgive me, have mercy on me, grant me well-being, guide me and provide for me.
A similar wording in Jami’ at-Tirmidhi 284 is graded da’if (weak) by Darussalam, so the Abu Dawud wording is the one given here.
In the sitting: Attahiyat and after
In the sitting you recite the Tashahhud (Attahiyat). In the final sitting it is followed by the salawat on the Prophet ﷺ, seeking refuge from four things, and then any dua you choose. The full texts and sources are on the page Attahiyat (Tashahhud).
After the final salam: Allahumma antas salam
Thawban reported that when the Prophet ﷺ finished his prayer, he asked Allah’s forgiveness three times and then said (Sahih Muslim 591):
اللَّهُمَّ أَنْتَ السَّلاَمُ وَمِنْكَ السَّلاَمُ تَبَارَكْتَ ذَا الْجَلاَلِ وَالإِكْرَامِ
Allāhumma anta s-salāmu wa minka s-salām, tabārakta dha l-jalāli wa l-ikrām.
Meaning: O Allah, You are Peace and from You comes peace. Blessed are You, Possessor of majesty and honour.
One of the narrators, al-Awza’i, was asked how the forgiveness was sought. He said: by saying astaghfiru llāh, astaghfiru llāh (I ask Allah’s forgiveness).
When you need to make a decision
For guidance in a decision, the Prophet ﷺ taught a two-rak’ah prayer followed by a specific dua. See Istikhara dua.
Sources
| What | Reference | Narrator | Grade |
|---|---|---|---|
| Entering and leaving the masjid | muslim 713a (Book 6, Hadith 82) | Abu Humayd or Abu Usayd (the narrator was unsure which) | Sahih (in Sahih Muslim) |
| Opening dua “Allāhumma bā’id” | bukhari 744 (Book 10, Hadith 138) | Abu Hurayrah | Sahih (in Sahih al-Bukhari) |
| Opening dua “Subḥānaka llāhumma” | abudawud 776 (Book 2, Hadith 386) | Aisha | Sahih according to al-Albani. Abu Dawud noted this chain is not well known. |
| Ruku, rising and sujood | muslim 772 (Book 6, Hadith 242) | Hudhayfah | Sahih (in Sahih Muslim) |
| “Allāhumma rabbanā laka l-ḥamd” behind the imam | bukhari 796 (Book 10, Hadith 191) | Abu Hurayrah | Sahih (in Sahih al-Bukhari) |
| Between the prostrations, short | ibnmajah 897 (Book 5, Hadith 95) | Hudhayfah | Sahih according to Darussalam |
| Between the prostrations, longer | abudawud 850 (Book 2, Hadith 460) | Abdullah ibn Abbas | Hasan according to al-Albani |
| Similar wording (not used) | tirmidhi 284 (Book 2, Hadith 136) | Abdullah ibn Abbas | Da’if (weak) according to Darussalam |
| After the final salam | muslim 591 (Book 5, Hadith 171) | Thawban | Sahih (in Sahih Muslim) |
Hadith numbers follow Sunnah.com numbering. Translations and transliterations: Deenify. Checked 5 December 2026. See how we source and grade duas. Found an error? Tell us.
Mohammed Basheer Orsala is the founder of Deenify.org, a free reference that records Islamic supplications with their Quran and hadith sources. He is a self-taught Islamic researcher based in Chennai, India.
