Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
darimi:1209Muslim > al-Ḥasan b. Abū Jaʿfar > Salm al-ʿAlawī > Anas And Lā Junub Illā ʿĀbirī Sabīl al-Nsāʾ 43

[Machine] Anas reported that the Prophet ﷺ said, "The person in a state of major ritual impurity (junub) may pass through the mosque but should not sit in it." (Surah An-Nisa 43)  

الدارمي:١٢٠٩أَخْبَرَنَا مُسْلِمٌ حَدَّثَنَا الْحَسَنُ بْنُ أَبِي جَعْفَرٍ حَدَّثَنَا سَلْمٌ الْعَلَوِيُّ

عَنْ أَنَسٍ {وَلَا جُنُبًا إِلَّا عَابِرِي سَبِيلٍ} [النساء 43] قَالَ «الْجُنُبُ يَجْتَازُ الْمَسْجِدَ وَلَا يَجْلِسُ فِيهِ»  


See similar narrations below:

Collected by Dārimī
darimi:1210al-Ḥakam b. al-Mubārak And ʾAbū Nuʿaym > Sharīk > ʿAbd al-Karīm al-Jazarī > Abū ʿUbaydah

[Machine] "The junub (one in a state of major ritual impurity) passes through the mosque without sitting in it." Then, he recited this verse: "And (also forbidden to you are) those who are impure due to sexual impurity unless they are passing through a road" [Quran 4:43].  

الدارمي:١٢١٠أَخْبَرَنَا الْحَكَمُ بْنُ الْمُبَارَكِ وَأَبُو نُعَيْمٍ عَنْ شَرِيكٍ عَنْ عَبْدِ الْكَرِيمِ الْجَزَرِيِّ عَنْ أَبِي عُبَيْدَةَ قَالَ

«الْجُنُبُ يَمُرُّ فِي الْمَسْجِدِ وَلَا يَقْعُدُ فِيهِ» ثُمَّ قَرَأَ هَذِهِ الْآيَةَ {وَلَا جُنُبًا إِلَّا عَابِرِي سَبِيلٍ} [النساء 43]