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.
bayhaqi:4300Abū al-Ḥusayn b. Bishrān > Abū ʿAmr b. al-Sammāk > al-Ḥasan b. Salām al-Ṣawwāf > Abū Ghassān > Huraym > Layth > Ayyūb > Anas b. Mālik

[Machine] The Messenger of Allah ﷺ said: "Build mosques and make them gathering places."  

البيهقي:٤٣٠٠أَخْبَرَنَا أَبُو الْحُسَيْنِ بْنُ بِشْرَانَ ثنا أَبُو عَمْرِو بْنُ السَّمَّاكِ ثنا الْحَسَنُ بْنُ سَلَامٍ الصَّوَّافُ ثنا أَبُو غَسَّانَ ثنا هُرَيْمٌ عَنْ لَيْثٍ عَنْ أَيُّوبَ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

قَالَ رَسُولُ اللهِ ﷺ ابْنُوا الْمَسَاجِدَ وَاتَّخِذُوهَا جُمًّا  


See similar narrations below:

Collected by Suyūṭī