for reference - -
Matthew 8:28-33
And when he came to the other side, to the country of the Gadarenes, two demon-possessed men met him, coming out of the tombs, so fierce that no one could pass that way. And behold, they cried out, "What have you to do with us, O Son of God? Have you come here to torment us before the time?" Now a herd of many pigs was feeding at some distance from them. And the demons begged him, saying, "If you cast us out, send us away into the herd of pigs." And he said to them, "Go." So they came out and went into the pigs, and behold, the whole herd rushed down the steep bank into the sea and drowned in the waters. The herdsmen fled, and going into the city they told everything, especially what had happened to the demon-possessed men.
Mark 5:1-14
They came to the other side of the sea, to the country of the Gerasenes. And when Jesus had stepped out of the boat, immediately there met him out of the tombs a man with an unclean spirit. He lived among the tombs. And no one could bind him anymore, not even with a chain, for he had often been bound with shackles and chains, but he wrenched the chains apart, and he broke the shackles in pieces. No one had the strength to subdue him. Night and day among the tombs and on the mountains he was always crying out and cutting himself with stones. And when he saw Jesus from afar, he ran and fell down before him. And crying out with a loud voice, he said, "What have you to do with me, Jesus, Son of the Most High God? I adjure you by God, do not torment me." For he was saying to him, "Come out of the man, you unclean spirit!" And Jesus asked him, "What is your name?" He replied, "My name is Legion, for we are many." And he begged him earnestly not to send them out of the country. Now a great herd of pigs was feeding there on the hillside, and they begged him, saying, "Send us to the pigs; let us enter them." So he gave them permission. And the unclean spirits came out, and entered the pigs, and the herd, numbering about two thousand, rushed down the steep bank into the sea and were drowned in the sea. The herdsmen fled and told it in the city and in the country. And people came to see what it was that had happened.