Read this passage and open each verse for the full verse feed and commentary tools.
15"If your brother sins against you, go, show him his fault between you and him alone. If he listens to you, you have gained back your brother. 16But if he doesn`t listen, take one or two more with you, that at the mouth of two or three witnesses every word may be established. 17If 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. 18Most assuredly I tell you, whatever things you will bind on earth will be bound in heaven, and whatever things you will loose on earth will be loosed in heaven.
Matthew 18:15-18 (WEB)