סימן יב סעיף טו
כּוֹפִין בְּנֵי הַעִיר זֶה אֶת זֶה לִבְנוֹת בֵּית הַכְּנֶסֶת אוֹ בֵּית הַמִּדְרָשׁ וְלִקְנוֹת סְפָרִים לִלְמֹד בָּהֶם. וּבִמְקוֹם שֶׁאֵין מִנְיָן תָּמִיד, כּוֹפִין זֶה אֶת זֶה בִּקְנָסוֹת שֶׁיָּבוֹאוּ תָמִיד לַמִּנְיָן, שֶׁלֹּא יִתְבַּטֵּל הַתָּמִיד. וַאֲפִלּוּ הַלּוֹמְדִים שֶׁעַל יְדֵי זֶה יִתְבַּטְּלוּ מִלִּמּוּדָם, כּוֹפִין אוֹתָם שֶׁיָּבֹאוּ לַמִּנְיָן, דִּזְמַן תּוֹרָה לְחוֹד וּזְמַן תְּפִלָּה לְחוֹד.
The inhabitants of a city can force each other to build a synagogue or Beis Midrash and to buy books in which to study. In a place where there is no regular minyan the people can force each other by imposing fines to assemble regularly for a minyan, so that there be no interruption of the daily service. Even those who are preoccupied with Torah study, and will thus be prevented from studying Torah can be forced to attend the minyan, because there is a time for study and a separate time for prayer.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)