סימן קפא סעיף יא
עֲיָרוֹת שֶׁאֵין בָּהֶם חֲכָמִים הָרְאוּיִים לִהְיוֹת דַּיָּנִים, מְמַנִּים הַטּוֹבִים וְהַחֲכָמִים שֶׁבָּהֶם לְדַעַת אַנְשֵׁי הָעִיר, וְהֵם יָדוּנוּ אַף עַל פִּי שֶׁאֵינָם רְאוּיִים לְדַיָנִים, כְּדֵי שֶׁלֹּא יֵלְכוּ לִפְנֵי עַרְכָּאוֹת שֶׁל גּוֹיִם. וְכֵיוָן שֶׁקִבְּלוּם עֲלֵיהֶם בְּנֵי הָעִיר, אֵין אַחֵר יָכוֹל לְפָסְלָן. וְכָל מַעֲשֵׂיהֶם יִהְיוּ לְשֵׁם שָׁמָיִם.
In communities where there are no scholars who are qualified to be judges, they should appoint the best and wisest among themselves according to the understanding of the townsmen, and they should judge even though they are not qualified to be judges. We permit this so that people will not go to the secular courts. Since they were accepted by their townsmen, no one can disqualify them. All their activities should be for the glory of Heaven.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)