Deuteronomy 25:1

"If there is a case between persons, and they apply to the judges, they shall give the palm of justice to the one whom they perceive to be just, and they shall condemn of impiety the one who is impious

Other versions

King James Version

If there be a controversy between men, and they come unto judgment, that the judges may judge them; then they shall justify the righteous, and condemn the wicked.

English Standard Version

"If there is a dispute between men and they come into court and the judges decide between them, acquitting the innocent and condemning the guilty,

New International Version

When men have a dispute, they are to take it to court and the judges will decide the case, acquitting the innocent and condemning the guilty.