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.
ahmad-zuhd:2152ʿAbdullāh from my father > Isḥāq al-Azraq > Sharīk > al-Aʿmash > ʿAbd al-Raḥman b. Maʿqil

[Machine] From some of the companions of the Prophet ﷺ, it is narrated that he said: "The mosque is a strong fortress against Satan."  

الزهد لأحمد:٢١٥٢حَدَّثَنَا عَبْدُ اللَّهِ حَدَّثَنِي أَبِي حَدَّثَنَا إِسْحَاقُ الْأَزْرَقُ عَنْ شَرِيكٍ عَنِ الْأَعْمَشِ عَنْ عَبْدِ الرَّحْمَنِ بْنِ مَعْقِلٍ

عَنْ بَعْضِ أَصْحَابِ النَّبِيِّ ﷺ أَنَّهُ قَالَ «الْمَسْجِدُ حِصْنٌ مِنَ الشَّيْطَانِ شَدِيدٌ»