Matthew 18:17

15 If your brother sins against you, go and confront him privately. If he listens to you, you have won your brother over.

16 But 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.’

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.

18 Truly I tell you, whatever you bind on earth will be bound in heaven, and whatever you loose on earth will be loosed in heaven.

19 Again, I tell you truly that if two of you on the earth agree about anything you ask for, it will be done for you by My Father in heaven.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
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.
KJV
And if he shall neglect to hear them, tell it unto the church: but if he neglect to hear the church, let him be unto thee as an heathen man and a publican.
WEB
If he refuses to listen to them, tell it to the assembly. If he refuses to hear the assembly also, let him be to you as a Gentile or a tax collector.
ASV
And if he refuse to hear them, tell it unto the church: and if he refuse to hear the church also, let him be unto thee as the Gentile and the publican.
DARBY
But if he will not listen to them, tell it to the assembly; and if also he will not listen to the assembly, let him be to thee as one of the nations and a tax-gatherer.
BLB
And if he may fail to hear them, say [it] to the church. And if he may fail to hear even the church, let him be unto you as the Gentile and the tax collector.
ÅB
Men hører han ikke på dem, så si det til menigheten! Om om han ikke hører på menigheten heller, så skal du betrakte ham som en hedning og en toller.
OTB
Hvis de nekter å lytte til dem, fortell det til menigheten; og hvis de nekter å lytte selv til menigheten, behandle dem som du ville en hedning eller en toller.
B1930
Men hører han ikke på dem, da si det til menigheten! men hører han heller ikke på menigheten, da skal han være for dig som en hedning og en tolder.

Study notes (Tyndale)

Original text and word study

Cross references