Closest thing that comes to what you're thinking that I can recall:
Matthew 5:25-26
25"Settle matters quickly with your adversary who is taking you to court. Do it while you are still with him on the way, or he may hand you over to the judge, and the judge may hand you over to the officer, and you may be thrown into prison. 26I tell you the truth, you will not get out until you have paid the last penny.