Agree with your opponent quickly, while you are with him on the road to court, lest your opponent deliver you to the judge, and the judge deliver you to the guard, and you be thrown into prison. Bible other translations

“opponent.” The Greek word is antidikos (#476 ἀντίδικος), and it has two meanings: to be constantly against as an enemy to, or to be an opponent in a court of law (thus, an “opponent at law”). The word antidikos occurs five times in the New Testament, and here in Matthew it has the legal meaning of an opponent in a lawsuit (cp. NASB in Matt. 5:25). The other occurrences seem to fit the general situation of an opponent well (see commentary on 1 Pet. 5:8).

Commentary for: Matthew 5:25