Matthew 18:17

15 Moreover if thy brother shall trespass against thee, go and tell him his fault between thee and him alone: if he shall hear thee, thou hast gained thy brother.

16 But if he will not hear thee, then take with thee one or two more, that in the mouth of two or three witnesses every word may be established.

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.

18 Verily I say unto you, Whatsoever ye shall bind on earth shall be bound in heaven: and whatsoever ye shall loose on earth shall be loosed in heaven.

19 Again I say unto you, That if two of you shall agree on earth as touching any thing that they shall ask, it shall be done for them of my Father which is 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