The Lord does not let His Presence rest upon Israel, until the bad judges and officers cease to exist
By extension: Society is not reformed and worthy as long as its judges and officers are unworthy.
("And the Holy One, blessed be He, does not let His Presence rest upon Israel, until the bad judges and officers cease to exist from Israel, as it is said (Isaiah 1): 'And I will turn my hand upon you, and will purge away your dross as with lye, and take away all your alloy. And I will restore your judges as at the first, and your counselors as at the beginning, etc.'" – Shabbat 139a)
Translation
Expression (Hebrew)
אֵין הקב"ה מַשְׁרֶה שְׁכִינָתוֹ עַל יִשְׂרָאֵל עַד שֶׁיִּכְלוּ שׁוֹפְטִים וְשׁוֹטְרִים רָעִים מִיִּשְׂרָאֵל
Definition (Hebrew)
בְּהַשְׁאָלָה: הַחֶבְרָה אֵינָהּ מְתֻקֶּנֶת וּרְאוּיָה כָּל עוֹד שׁוֹפְטֶיהָ וְשׁוֹטְרֶיהָ אֵינָם רְאוּיִים.
("וְאֵין הַקָּדוֹשׁ בָּרוּךְ הוּא מִשְׂרָה שְׁכִינָתוֹ עַל יִשְׂרָאֵל עַד שֶׁיָּכְלוּ שׁוֹפְטִים וְשׁוֹטְרִים רֵעִים מִיִּשְׂרָאֵל, שֶׁנֶּאֱמַר (יְשַׁעְיָהוּ א) וַאֲשִׁיבָהּ יְדֵי עָלֶיךָ וַאֲצָרֵף כְּבָר סָגֶיךָ, וַאֲסִירָה כָּל בְּדִלְיֵךְ וַאֲשִׁיבָהּ שְׁפָטֶיךָ כבראשונה וְיַעֲצֵךְ כְּבַתְּחִלָּה וגו'"- שַׁבָּת קלט ע"א)