[Machine] And Abu Hazim reported that Abu Ahmad Al-Hafiz reported that Abu Al-Abbas Al-Thaqafi narrated that Muhammad ibn Raffi narrated from Abdul Razzaq that Mammar reported from Abdul Karim from Abu Ubaydah ibn Abdullah from Ibn Mas'ud that he used to permit the one in a state of major ritual impurity (junub) to pass through the mosque as long as he was just passing by. He said, "And I only know this from the statement, 'And not in a state of junub, except those passing through [a place of prayer]'." (Quran 4:43)
وَأنبأ أَبُو حَازِمٍ أنبأ أَبُو أَحْمَدَ الْحَافِظُ أنبأ أَبُو الْعَبَّاسِ الثَّقَفِيُّ ثنا مُحَمَّدُ بْنُ رَافِعٍ ثنا عَبْدُ الرَّزَّاقِ أنبأ مَعْمَرٌ عَنْ عَبْدِ الْكَرِيمِ عَنْ أَبِي عُبَيْدَةَ بْنِ عَبْدِ اللهِ عَنِ ابْنِ مَسْعُودٍ أَنَّهُ كَانَ يُرَخِّصُ لِلْجُنُبِ أَنْ يَمُرَّ فِي الْمَسْجِدِ مُجْتَازًا قَالَ وَلَا أَعْلَمُهُ إِلَّا قَالَ {وَلَا جُنُبًا} [النساء 43] إِلَّا عَابِرِي سَبِيلٍ