Read this passage and open each verse for the full verse feed and commentary tools.
17And 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. 18Verily I say unto you, what things soever ye shall bind on earth shall be bound in heaven; and what things soever ye shall loose on earth shall be loosed in heaven. 19Again I say unto you, that if two of you shall agree on earth as touching anything that they shall ask, it shall be done for them of my Father who is in heaven. 20For where two or three are gathered together in my name, there am I in the midst of them.
Matthew 18:17-20 (ASV)