Avraham was informed by the angels that came to his tent that Hashem was about to destroy the corrupt cities of Sodom and Amora. We are told that he did not accept this without a plea to save them. He pleads with Hashem and starts his appeal to save the city by pleading if there are only fifty righteous people there would Hashem destroy the city.
Hashem answers: אִם אֶמְצָא בִסְדֹם חֲמִשִּׁים צַדִּיקִם בְּתוֹךְ הָעִיר, “If I find in Sodom fifty righteous people in the midst of the city…” (Gen. 18.26) he would not destroy the city. It is noteworthy that Hashem emphasized that He wants to find fifty people “in the midst of the city”.
This can serve as a good example for a Jewish city. It may not be difficult to find righteous people in the synagogue or in the Bet Midrash. Hashem wants to find righteous people in the midst of the city. He wants to find them in their businesses and in their actions with other people, in their normal activities.
It is not too challenging to be moral and virtuous in the synagogue. It is in the daily mundane activities of interaction with people where one must also display his honest and upright dealings with others.