The Dua for entering the mosque, “اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ” (Allahumma iftah li abwaaba rahmatika), is not restricted to prayer times. It can be recited whenever you enter the mosque, regardless of whether a prayer is being performed at that moment. This Dua is a means of inviting Allah’s mercy into your heart as you enter the sacred space of the mosque.
The beauty of this supplication is its versatility. It doesn’t matter if you’re visiting for a casual moment of reflection, attending a lecture, or waiting for prayer—reciting this Dua brings spiritual benefits. The act of remembering Allah and asking for His mercy is beneficial at all times, and the masjid serves as a powerful place to connect with Him.