Matthew 18:17
If he refuses to listen to them, tell it to the church. And if he refuses to listen even to the church, regard him as you would a pagan or a tax collector.
What it says
If he still refuses, the matter is to be told to the church.
What it is doing
The church becomes the final earthly witness.
In context
15If your brother sins against you, go and confront him privately. If he listens to you, you have won your brother over. 16But if he will not listen, take one or two others along, so that ‘every matter may be established by the testimony of two or three witnesses.’ 17If he refuses to listen to them, tell it to the church. And if he refuses to listen even to the church, regard him as you would a pagan or a tax collector. 18Truly I tell you, whatever you bind on earth will be bound in heaven, and whatever you loose on earth will be loosed in heaven.