The Shaykh (Al-Mufid), may Allah سبحانه وتعالى support him, said: "If a person becomes junub by either of these two causes, they should not approach mosques except as a passerby, and they should not sit in any part of them unless out of necessity." This is supported by evidence.
Commentary #8