The Sunnahs of Going to the Masjid
1- Going early for the prayers: the prophet (pbuh) said: " if people know how much they could benefit from "al athan" (prayer call) and being among those standing in the first row in their prayers, they would even poll or gamble for it if there is no other way. and if they know how much bounty they get in arriving early to the mosque, they would compete for it. and if they know much beneficence in al fajr(dawn) and al 'eshaa(night) prayers they would even go creeping" (agreed upon as a correct narrative)
2- The du'aa (supplication) upon going to the masjid: " o allah, lighten my heart, lighten my speech, lighten my audition, lighten my insight and bless me with light from behind, front, above, under and cover me all with light" (narrated by imam muslim)
3- Walking with solemnity : the prophet (pbuh) said: " when you hear the call for the prayers; walk to your prayers quietly with solemnity …" (narrated by al bukhari and imam muslim)
4- Going to the masjid on foot: scholars assured that it is a sunnah to shorten your steps swiftly to get more merits out of the number of steps, as the prophet (pbuh) said: "do you know what can erase your sins and heighten your faith? they replied: no; he then mentioned some points in addition to " walking to the mosque" …" (narrated by imam muslim)
5- The du'aa upon entering the masjid: whenever you enter the masjid address salutation for the prophet (pbuh) and say : " o allah, open your gates of mercy for me" (narrated by an nasa'i, ibn majah, ibn khozaimah and ibn hibban).
6- Entering the masjid with the right leg: anas ibn malek (may allah be pleased with him) said : " it is sunnah to enter the masjid with your right leg and exit with your left leg" (al hakem and ath- thahaby agreed that this narrative is correct according to imam muslim's narrative)
7- Heading for the first row: "if people know how much they could benefit from "al athan" (prayer call) and being among those standing in the first row in their prayers, they would even poll or gamble for it if there is no other way….. " (agreed upon as a correct narrative).
8- The du'aa of exiting the masjid: "when departing say: o allah, i ask your donation" (narrated by imam muslim; and an nasa'i added that a salutation for the prophet (pbuh) is preferred).
9- Exiting with the left leg: referring to anas ibn malek 's (may allah be pleased with him) above narrative.
10- The masjid salutation prayer : " when you enter the masjid do not sit until you address a two rak'a prayer" (agreed upon as a correct narrative)
- imam ash shafe'ie said: salutation prayer is right even in the non-preferred prayer times.
- Al hafez said: all the scholars agreed that salutation prayer is a true sunnah.
- the sum of all these sunnahs for a muslim who practice the five prayers at the masjid is fifty sunnahs.