The previous article refers to Tractate Shabbat 139a...
http://halakhah.com/shabbath/shabbath_139.html.
.
.
It was taught. R. Jose b. Elisha said: If you see a generation overwhelmed by many troubles, go forth and examine the judges of Israel, for all retribution that comes to the world comes only on account of the Judges of Israel, as it is said, Hear this, I pray you ye heads of the house of Jacob, and rulers of the house of Israel, that abhor judgment, and pervert all equity. They build up Zion with blood and Jerusalem with iniquity. The heads thereof judge for reward, and the priests thereof teach for hire, and the prophets thereof divine for money; yet will they lean upon the Lord, etc.3 They are wicked, but they place their confidence in Him Who decreed, and the world came into existence.4 Therefore the Holy One, blessed be He, will bring three punishments upon them answering to the three sins which they cultivate,5 as it is said, Therefore shall Zion for your sake be ploughed as a field, and Jerusalem shall become heaps, and the mountain of the house as the high places of a forest.6 And the Holy One, blessed be He, will not cause His Divine presence to rest upon Israel until the wicked judges and officers cease out of Israel, for it is said, And I will turn my hand upon thee, and thoroughly purge away thy dross, and will take away all thy tin. And I will restore thy judges as at the first, and thy counsellors as at the beginning, etc.7
'Ulla said: Jerusalem shall be redeemed only by righteousness,8 as it is written, Zion shall be redeemed with judgement, and her converts with righteousness.9
R. Papa said: When the haughty cease to exist [in Israel], the magi10 shall cease [among the Persians]. When the judges cease to exist [in Israel], the chiliarchi11 shall cease. 'When the haughty cease to exist [in Israel], the magi shall cease [among the Persians]'; as it is written, And I will surely purge away thy haughty ones.12 When the judges cease to exist [in Israel], the chiliarchi shall cease, as it is written, The Lord hath taken away thy judgements, he hath cast out thine enemy.13
R. Melai14 said in the name of R. Eleazar son of R. Simeon: What is meant by the verse, The Lord hath broken the staff of the wicked, the sceptre of the rulers?15 'The Lord hath broken the staff of the wicked' refers to the judges who become a staff for their sheriffs;16 'the sceptre of the rulers' refers to the scholars in the families of the judges.17 Mar Zutra said: This refers to the scholars who teach the laws of the public18 to ignorant judges.19
R. Eleazar b. Melai said in the name of Resh Lakish: What is meant by the verse, For your hands are defiled with blood, and your fingers with iniquity; your lips have spoken lies, your tongue muttereth wickedness?20 'For your hands are defiled with blood': this refers to the judges: 'and your fingers with iniquity', to the judges' scribes;21 'your lips have spoken lies' to the advocates of the judges;22 'your tongue muttereth wickedness' — to the litigants.
.
.
.