Upon going to the Masjid/Mosque
Upon going to the masjid/mosque endeavor to make ablution and say this: "Allāhumma ijʿal fī qalbī nūran" "O Allāh put light in my heart".
Upon getting to the masjid
When entering the masjid/mosque you should say: "Allāhumma iftaḥ lī abwāba raḥmatika" "O Allāh open the gate of your mercy for me".