Hadhrat Abu Hurairah (Radhiyallahu Anhu) narrates that he heard Rasulullah (Sallallahu Alaihi Wa Sallam) say:
“Allah Ta’ala will grant His Shade to seven (types) of persons on the day when their will be no shade besides His Shade. (Among the seven) one is a man whose heart is attached to the Masjid.” [Bukhari, Muslim]
Hadhrat Abu Darda (Radhiyallahu Anhu) narrates that Rasulullah (Sallallahu Alaihi Wa Sallam) said:
“Whoever walks to the Masjid in the darkness of the night, will meet Allah with Noor on the Day of Qiyaamah.” (Tibraani)
Abu Hurayra (Radhiyallahu Anhu) reported that the Prophet (Sallallahu Alaihi Wa Sallam) said,
“Anyone who purifies himself in his house and then goes to one of the houses of Allah to fulfil one of the obligations of Allah, one step removes an error and the other raises him a degree.” (Muslim)
Hadhrat Anas (Radhiyallahu Anhu) narrates that Rasulullah (Sallallahu Alaihi Wa Sallam) said:
“Refrain from these foul-smelling (vegetables) before coming to our Masaajid. If you wish to eat these, then eliminate the bad odour with fire. (i.e. by means of cooking).” (Tibraani)
This hadith prohibits the eating of raw garlic, onions and the like before coming to the Masjid. Other ahadith specifically mention garlic and onions.
Hadhrat Abu Saeed Khudri (Radhiyallahu Anhu) narrates that Rasulullah (Sallallahu Alaihi Wa Sallam) said:
“Whoever removes from the Masjid any offensive item, Allah Ta’ala will in return erect for him a palace in Jannat.” (Ibn Majah)
Since Masaajid are places of sanctity, nothing impure should be taken in. Impure garments and people in the state of impurity should not enter the Masaajid.
Hadhrat Abdullah Ibn Mas’ood (Radhiyallahu Anhu) narrates that Rasulullah (Sallallahu Alaihi Wa Sallam) said:
“Soon will there be such people who will indulge in (worldly) conversation inside the Masjid. Allah cares not for them.” (Ibn Habbaan)
This hadith refers to the prohibition of worldly talk inside the Masjid. It mentions the displeasure of Allah Ta’ala. Such people are deprived of His Mercy and instead invite Allah’s Wrath. Before or after salah one should not simply hang around chit chatting casually about this and that, if we won’t engage in ibaadah or dhikr we should leave the Masjid and save the conversation for another place in order to secure ourselves from displeasing Almighty Allah.