The Torah tells us of important posts to be appointed at the beginning of our parsha: judges, police, a king and prophets. The appointment of judges is not one of the 613 mitzvot, but still we pray three times a day
הָשִׁיבָה שוֹפְטֵינוּ כְבָרִׁאשוֹנָה וְיוֹעֲצֵינוּ כְבַתְחִׁלָה…
Restore our judges as they were once, and our advisors as were at the beginning Why don’t we ask for judges and police, as the Torah describes in our parsha? Yeshiahu promises us in the same way:
וְאָשִִׁׁ֤יבָה שֹׁפְטַַ֙יִׁךַ֙ כְבָרִִׁ֣אשֹׁנָָ֔ה וְיֹׁעֲצַַ֖יִׁך כְבַתְחִׁלָָּ֑ה אַַֽחֲרֵי כֵֵ֗ן יִׁקִָׁ֤רֵאלָךַ֙ עִִׁ֣יר הַצֶָ֔דֶק קִׁרְיַָ֖ה נֶאֱמָנַָֽה.
I will return your judges and advisors, and then (Jerusalem) will be called the city of justice, and a loyal place The appointment of judges is a condition (mentioned too by the Rambam,3 ) for the future redemption, the building of the temple and the coming of mashiach.