Dua for Entering the Masjid and Leaving It
On entering the masjid a person asks Allah to open the doors of His mercy, and on leaving he asks for His bounty.
The Prophet (peace be upon him) said: when one of you enters the masjid, let him say:
اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ
Allāhumma iftah lī abwāba rahmatik
O Allah, open for me the doors of Your mercy.
sala-sa.com
And when he leaves, let him say:
اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ فَضْلِكَ
Allāhumma innī as'aluka min fadlik
O Allah, I ask You for Your bounty.
Seeking protection on entering
Abdullah ibn Amr reported that when the Prophet entered the masjid he said:
أَعُوذُ بِاللَّهِ العَظِيمِ، وَبِوَجْهِهِ الْكَرِيمِ، وَسُلْطَانِهِ الْقَدِيمِ، مِنَ الشَّيْطَانِ الرَّجِيمِ
A‘ūdhu billāhi l-‘azīmi, wabiwajhihi l-karīmi, wasultānihi l-qadīmi, mina sh-shaytāni r-rajīm
I seek refuge in Allah the Magnificent, in His noble face and His ancient authority, from the accursed devil.
Questions about the dua for entering the masjid
What is the dua for entering the masjid?
"Allahumma iftah li abwaba rahmatik", as in Sahih Muslim 713, and on leaving "Allahumma inni as'aluka min fadlik".
Is a prayer prayed on entering?
Yes. A person who enters prays two rak'ahs before sitting. See tahiyyatul masjid.
