-->
Staying in the mosque
It is forbidden for one who is physically unclean (because of sex or menstruation) to stay in the mosque.
'Aishah said, "The Messenger of Allah, upon whom be peace, saw that his companions' houses were practically in the mosque. He said, 'Direct those houses away from the mosque.' He then entered the mosque, but the people did nothing, hoping that Allah would reveal to Muhammad that what they were doing was permissible. After he came out, he said, 'Direct those houses away from the mosque, for it is not permitted for a menstruating woman or sexually impure person to be in the mosque." (Related by Abu Dawud.) Umm Salamah related that the Prophet, upon whom be peace, came to the mosque's courtyard and said at the top of his voice, "The mosque is off limits to menstruating women and the sexually impure persons." (Related by Ibn Majah and at-Tabarani.) Such people can, however, pass through the mosque, for says Allah, "O you who believe, draw not near unto prayer when you are drunk until you know that which you utter, nor when you are impure save when journeying upon the road, until you have bathed" (an-Nisa' 43). Said Jubair, "One of us used to pass through the mosque though he was impure." (Related by Ibn Abu Shaibah and Sa'eed ibn Mansur in his Sunan.) Zaid ibn Aslam said, "The companions of the Messenger of Allah, upon whom be peace, used to walk through the mosques while they were sexually impure." (Related by Ibn al-Mundhir.) Yazib ibn Habib reported that the companions' doors opened up into the mosque, and that when they were sexually impure, they could find no water or any path to water save through the mosque. Then Allah revealed, "...nor when you are impure, save journeying upon the road..." (Related by at-Tabari.) Commenting on the preceding reports, ash-Shaukani says,"The meaning is so clear that there is no room for doubt." Said 'Aishah, "The Prophet said to me, 'Hand me my cloth from the mosque.' I said, 'I am menstruating.' He said, 'Your menstruation is not in your hand."
(Related by the group, except for al-Bukhari.) Said Maimunah, "The Messenger of Allah used to come to one of our rooms while we were menstruating and put his head on (his wife's) lap and recite the Qur'an. Then one of us would take his clothes and put them in the mosque while she was menstruating." (Related by Ahmad and an-Nasa'i.
The report has supporting evidence.)
"When a person dies, his works end, except for three: ongoing charity, knowledge that is benefited from, and a righteous child who prays for him."
Prophet Mohammed (PBUH)
"The best of what a man leaves behind are three: a righteous child who supplicates for him, ongoing charity the reward of which reaches him, and knowledge that is acted upon after him."
Sunan Ibn Mājah
"Every day two angels come down from Heaven and one of them says, 'O Allah! Compensate every person who spends in Your Cause,' and the other (angel) says, 'O Allah! Destroy every miser.'"
Sahih Bukhari