It was Christ himself that advised bringing swords (Luke 22).
Actually it is Luke 22:38 And they said, Lord, behold, here are two swords. And he said unto them, It is enough.