The Sufficient (Vol 3) · Hadith 240 (#Ḥadīth #4)
Chapter 33 | One after Carnal Relations Eats, Drinks, Reads, Enters a Masjid, Dyes Hair, Uses Fragrance and So On
4ـ عَلِيُّ بْنُ إِبْرَاهِيمَ عَنْ أَبِيهِ عَنِ ابْنِ أَبِي عُمَيْرٍ عَنْ جَمِيلٍ قَالَ سَأَلْتُ أَبَا عَبْدِ الله (عَلَيْهِ الْسَّلام) عَنِ الْجُنُبِ يَجْلِسُ فِي الْمَسَاجِدِ قَالَ لاَ وَلَكِنْ يَمُرُّ فِيهَا كُلِّهَا إِلاَّ الْمَسْجِدَ الْحَرَامَ وَمَسْجِدَ الرَّسُولِ (صلّى اللهُ عَلَيْهِ وَآلِه).
4. Ali ibn Ibrahim has narrated from his father from Ibn Abi ‘Umayr from Jamil who has said the following: “I once asked abu ‘Abd Allah , about one’s sitting in Masjid after experiencing sexual relation. He (the Imam) said, ‘No, it is not permissible but one can pass through all kinds of Masjid except Masjid al-Haram and Masjid of the Messenger of Allah.’”
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).