Demons cast out of a man in the synagogue

Mark 1:21 And they went into Capernaum; and straightway on the sabbath day he entered into the synagogue, and taught. Luke 4:31 And came down to Capernaum, a city of Galilee, and taught them on the sabbath days. John 2:12 After this he went down to Capernaum [1], he, and his mother, and his brethren [2], and his disciples: and they continued there not many days.
Mark 1:22 And they were astonished at his doctrine: for he taught them as one that had authority, and not as the scribes. Luke 4:32 And they were astonished at his doctrine: for his word was with power.
Mark 1:23 And there was in their synagogue a man with an unclean spirit; and he cried out, 24 Saying, Let us alone; what have we to do with thee, thou Jesus of Nazareth? art thou come to destroy us? I know thee who thou art, the Holy One of God. Luke 4:33 And in the synagogue there was a man, which had a spirit of an unclean devil, and cried out with a loud voice, 34 Saying, Let us alone; what have we to do with thee, thou Jesus of Nazareth? art thou come to destroy us? I know thee who thou art; the Holy One of God.
Mark 1:25 And Jesus rebuked him, saying, Hold thy peace, and come out of him. Luke 4:35a And Jesus rebuked him, saying, Hold thy peace, and come out of him.
Mark 1:26 And when the unclean spirit had torn him, and cried with a loud voice, he came out of him. Luke 4:35b And when the devil had thrown him in the midst, he came out of him, and hurt him not.
Mark 1:27 And they were all amazed, insomuch that they questioned among themselves, saying, What thing is this? what new doctrine is this? for with authority commandeth he even the unclean spirits, and they do obey him. Luke 4:36 And they were all amazed, and spake among themselves, saying, What a word is this! for with authority and power he commandeth the unclean spirits, and they come out.
       

Matt 4:23 And Jesus went about all Galilee, teaching in their synagogues, and preaching the gospel of the kingdom, and healing all manner of sickness and all manner of disease among the people.

Mark 1:28 And immediately his fame spread abroad throughout all the region round about Galilee. Matt 4:24a And his fame went throughout all Syria: Luke 4:37 And the fame of him went out into every place of the country round about.

Matt 4:24b and they brought unto him all sick people that were taken with divers diseases and torments, and those which were possessed with devils, and those which were lunatick, and those that had the palsy; and he healed them.

Matt 4:25 And there followed him great multitudes of people from Galilee, and from Decapolis, and from Jerusalem, and from Judaea, and from beyond Jordan.

[1]In John, Jesus visits Capernaum before the arrest of John the Baptist, contradicting Mark 1:14, Matthew 4:12, and Luke 3:20.

[2]It is not clear why Jesus is traveling with his brethren, when John 7:5 makes clear that they don't believe in him.