The Lord hates corrupt judges.
Select capable men from all the people—men who fear God, trustworthy men who hate dishonest gain—and appoint them as officials over thousands, hundreds, fifties and tens. Have them serve as judges for the people at all times, but have them bring every difficult case to you the simple cases they can decide themselves. That will make your load lighter, because they will share it with you.
Exodus 18:21-22
Do not pervert justice do not show partiality to the poor or favoritism to the great, but judge your neighbor fairly. Leviticus 19:15
Do you rulers indeed speak justly? Do you judge uprightly among men? No, in your heart you devise injustice, and your hands mete out violence on the earth. Even from birth the wicked go astray from the womb they are wayward and speak lies. Psalm 58:1-3
Speak up for those who cannot speak for themselves, for the rights of all who are destitute. Speak up and judge fairly defend the rights of the poor and needy. Proverbs 31:8-9