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.
tirmidhi:3093bAbū Kurayb > Rishdīn b. Saʿd > ʿAmr b. al-Ḥārith > Darrāj > Abū al-Haytham > Abū Saʿīd

that the Messenger of Allah ﷺ said: "When you see a man frequenting the Masjid, then testify to his faith. Indeed Allah, Most High, said: The Masjid shall be maintained by those who believe in Allah and the Last day (9:18)." (Another chain) from Abu Sa'eed from the Prophet ﷺ with similar wording except that he said: "Yata'ahadul Masjid."  

الترمذي:٣٠٩٣bحَدَّثَنَا أَبُو كُرَيْبٍ حَدَّثَنَا رِشْدِينُ بْنُ سَعْدٍ عَنْ عَمْرِو بْنِ الْحَارِثِ عَنْ دَرَّاجٍ عَنْ أَبِي الْهَيْثَمِ عَنْ أَبِي سَعِيدٍ قَالَ قَالَ

رَسُولُ اللَّهِ ﷺ إِذَا رَأَيْتُمُ الرَّجُلَ يَعْتَادُ الْمَسْجِدَ فَاشْهَدُوا لَهُ بِالإِيمَانِ قَالَ اللَّهُ تَعَالَى ( إِنَّمَا يَعْمُرُ مَسَاجِدَ اللَّهِ مَنْ آمَنَ بِاللَّهِ وَالْيَوْمِ الآخِرِ ) حَدَّثَنَا ابْنُ أَبِي عُمَرَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ عَنْ عَمْرِو بْنِ الْحَارِثِ عَنْ دَرَّاجٍ عَنْ أَبِي الْهَيْثَمِ عَنْ أَبِي سَعِيدٍ عَنِ النَّبِيِّ ﷺ نَحْوَهُ إِلاَّ أَنَّهُ قَالَ يَتَعَاهَدُ الْمَسْجِدَ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ وَأَبُو الْهَيْثَمِ اسْمُهُ سُلَيْمَانُ بْنُ عَمْرِو بْنِ عَبْدٍ الْعُتْوَارِيُّ وَكَانَ يَتِيمًا فِي حَجْرِ أَبِي سَعِيدٍ الْخُدْرِيِّ

See similar narrations below:

Collected by Aḥmad, Ibn Ḥibbān, Bayhaqī
ahmad:11725

The Messenger of Allah said: "If you see a man frequenting the mosques, then bear witness to his faith. Allah says: 'The mosques of Allah shall be maintained only by those who believe in Allah and the Last Day. [At-Taubah: 18]'" (Using translation from Ibn Mājah 802)   

أحمد:١١٧٢٥وَبِهَذَا الْإِسْنَادِ

عَنْ رَسُولِ اللهِ ﷺ أَنَّهُ قَالَ إِذَا رَأَيْتُمُ الرَّجُلَ يَعْتَادُ الْمَسْجِدَ فَاشْهَدُوا لَهُ بِالْإِيمَانِ فَإِنَّ اللهَ قَالَ {إِنَّمَا يَعْمُرُ مَسَاجِدَ اللهِ مَنْ آمَنَ بِاللهِ وَالْيَوْمِ الْآخِرِ} [التوبة 18]  

ذِكْرُ إِثْبَاتِ الْإِيمَانِ لِلْمُحَافِظِ عَلَى الصَّلَوَاتِ

ibnhibban:1721ʿAbdullāh b. Muḥammad b. Salm > Ḥarmalah b. Yaḥyá > Ibn Wahb > ʿAmr b. al-Ḥārith > Darrāj > Abū al-Haytham > Abū Saʿīd al-Khudrī

The Messenger of Allah said: "If you see a man frequenting the mosques, then bear witness to his faith. Allah says: 'The mosques of Allah shall be maintained only by those who believe in Allah and the Last Day. [At-Taubah: 18]'" (Using translation from Ibn Mājah 802)  

ابن حبّان:١٧٢١أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدِ بْنِ سَلْمٍ حَدَّثَنَا حَرْمَلَةُ بْنُ يَحْيَى حَدَّثَنَا ابْنُ وَهْبٍ أَخْبَرَنِي عَمْرُو بْنُ الْحَارِثِ عَنْ دَرَّاجٍ عَنْ أَبِي الْهَيْثَمِ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ

عَنْ رَسُولِ اللَّهِ ﷺ قَالَ «إِذَا رَأَيْتُمُ الرَّجُلَ يَعْتَادُ الْمَسْجِدَ فَاشْهَدُوا عَلَيْهِ بِالْإِيمَانِ» قَالَ اللَّهُ جَلَّ وَعَلَا {إِنَّمَا يَعْمُرُ مَسَاجِدَ اللَّهِ مَنْ آمَنَ بِاللَّهِ وَالْيَوْمِ الْآخِرِ}  

bayhaqi:4988[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Baḥr b. Naṣr > Quriʾ > Ibn WahbAkhbarak ʿAmr b. al-Ḥārith [Chain 2] Abū al-Naḍr al-Faqīh > ʿUthmān b. Saʿīd al-Dārimī > Aṣbagh b. al-Faraj > ʿAbdullāh b. Wahb > ʿAmr b. al-Ḥārith > Darrāj > Abū al-Haytham > Abū Saʿīd al-Khudrī

The Messenger of Allah said: "If you see a man frequenting the mosques, then bear witness to his faith. Allah says: 'The mosques of Allah shall be maintained only by those who believe in Allah and the Last Day. [At-Taubah: 18]'" (Using translation from Ibn Mājah 802)   

البيهقي:٤٩٨٨أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا بَحْرُ بْنُ نَصْرٍ قَالَ قُرِئَ عَلَى ابْنِ وَهْبٍ أَخْبَرَكَ عَمْرُو بْنُ الْحَارِثِ ح قَالَ وَأَخْبَرَنَا أَبُو النَّضْرِ الْفَقِيهُ ثنا عُثْمَانُ بْنُ سَعِيدٍ الدَّارِمِيُّ ثنا أَصْبَغُ بْنُ الْفَرَجِ ثنا عَبْدُ اللهِ بْنُ وَهْبٍ أَخْبَرَنِي عَمْرُو بْنُ الْحَارِثِ عَنْ دَرَّاجٍ حَدَّثَهُ عَنْ أَبِي الْهَيْثَمِ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ

قَالَ رَسُولُ اللهِ ﷺ إِذَا رَأَيْتُمُ الرَّجُلَ يَعْتَادُ الْمَسَاجِدَ فَاشْهَدُوا عَلَيْهِ بِالْإِيمَانِ قَالَ اللهُ ﷻ {إِنَّمَا يَعْمُرُ مَسَاجِدَ اللهِ مَنْ آمَنَ بِاللهِ وَالْيَوْمِ الْآخِرِ} [التوبة 18]