Purification (Kitab Al-Taharah)
Dawud :: Book 1 : Hadith 232
Narrated Aisha, Ummul Mu'minin:
The Apostle of Allah (peace_be_upon_him) came and saw that the doors of the houses of his Companions were facing the mosque. He said: Turn the direction of the houses from the mosque. The Prophet (peace_be_upon_him) then entered (the houses or the mosque), and the people did take any step in this regard hoping that some concession might be revealed. He the Prophet) again came upon them and said: Turn the direction of these (doors) from the mosque I do not make the mosque lawful for a menstruating woman and for a person who is sexually defiled.