Matthew 5:25-26

25 “Settle matters quickly with your adversary who is taking you to court. Do it while you are still together on the way, or your adversary may hand you over to the judge, and the judge may hand you over to the officer, and you may be thrown into prison.
26 Truly I tell you, you will not get out until you have paid the last penny.

Matthew 5:25 in Other Translations

KJV
25 Agree with thine adversary quickly, whiles thou art in the way with him; lest at any time the adversary deliver thee to the judge, and the judge deliver thee to the officer, and thou be cast into prison.
ESV
25 Come to terms quickly with your accuser while you are going with him to court, lest your accuser hand you over to the judge, and the judge to the guard, and you be put in prison.
NLT
25 “When you are on the way to court with your adversary, settle your differences quickly. Otherwise, your accuser may hand you over to the judge, who will hand you over to an officer, and you will be thrown into prison.
MSG
25 "Or say you're out on the street and an old enemy accosts you. Don't lose a minute. Make the first move; make things right with him. After all, if you leave the first move to him, knowing his track record, you're likely to end up in court, maybe even jail.
CSB
25 Reach a settlement quickly with your adversary while you're on the way with him, or your adversary will hand you over to the judge, the judge to the officer, and you will be thrown into prison.

Matthew 5:25-26 In-Context

23 “Therefore, if you are offering your gift at the altar and there remember that your brother or sister has something against you,
24 leave your gift there in front of the altar. First go and be reconciled to them; then come and offer your gift.
25 “Settle matters quickly with your adversary who is taking you to court. Do it while you are still together on the way, or your adversary may hand you over to the judge, and the judge may hand you over to the officer, and you may be thrown into prison.
26 Truly I tell you, you will not get out until you have paid the last penny.
27 “You have heard that it was said, ‘You shall not commit adultery.’
28 But I tell you that anyone who looks at a woman lustfully has already committed adultery with her in his heart.
Scripture quoted by permission.  Quotations designated (NIV) are from THE HOLY BIBLE: NEW INTERNATIONAL VERSION®.  NIV®.  Copyright © 1973, 1978, 1984, 2011 by Biblica.  All rights reserved worldwide.