Based on this concept of sacredness...
Based on this concept of sacredness, a junub is forbidden from coming into contact, in various ways, with two of the most sacred things in Islam: the Qur'an and the mosque. The following four acts are haram for the junub before performing the ghusl. Two are related to the Qur'an and the other two are related to mosques. 1. Touching the writing of the Qur'an, the names and attributes of Allah, the names of the Prophet, the Imams and Fatimah (the daughter of the Prophet).
This has already been explained on page 48 of this book. 2. Reciting the verses of the Qur'an in which sajdah (prostration) is wajib. These verses are: verse 15 of chapter 32; verse 15 of chapter 41; verse 62 of chapter 53; and verse 19 of chapter 96. It is better not to recite even a single verse from these chapters. 3. Entering or staying in the mosque.
The Qur'an says, "O you who believe!...Nor (are you allowed to enter the masjid) if you are junub until you have washed yourself except passing through."(4:43) Based on this verse and relevant ahadith, the mujtahids have concluded that a junub is totally forbidden from staying in the mosque. Of course, as the verse says, one can pass through the mosques (by entering from one door and leaving from the other).
However, this exception of passing through does not apply to the following places: the Masjidu'l-Haram (the Sacred Mosque at Mecca) Masjidu' n-Nabi (the Mosque of the Prophet at Medina), and shrines of the Imams a junub cannot even pass through them. Jamil asked Imam Ja'far as-Sadiq (a.s.) whether or not a junub can sit in mosques? The Imam said, "No!
But he may pass through all of them except the Sacred Mosque (at Mecca) and the Prophet's Mosque (at Medina)."[^1] Bakr bin Muhammad narrates that once he and his friends were going towards the house of Imam Ja'far as-Sadiq, when they met Abu Basir in the way. When Abu Basir came to know that they were going to visit the Imam, he joined them. As Bakr and his friends came to know later on, Abu Basir was in the state of janabat at that time.
When they entered the house of the Imam and greeted him, the Imam looked towards Abu Basir and said, "O Abu Basir! Do not you know that a junub person should not enter the houses of the prophets?"[^2]Abu Basir himself has also narrated this incident and quotes the Imam as follows: "Do not you know that a junub should not enter the houses of the prophets and of their children..."[^3] 4. Leaving something in or taking it out from a mosque.