As soon as they finished the discussion about the swords, they went to the Garden of Gethsemane, where Jesus prayed and where a group of armed soldiers came to arrest Him. When the apostles saw that Jesus was about to be arrested, they asked, “Lord, shall we strike with the sword?” (vs 49). Without waiting for an answer, an apostle drew a sword and blood was spilled.
The servant of the high priest had his ear cut off and he was standing there bleeding. Jesus intervened, saying, “‘No more of this!‘ And he touched his ear and healed him” (vs. 51). Read those words of Jesus again, “No more of this.” No more fighting. No more bloodshed. In Matthew’s account, Jesus makes a more general statement, “All who take the sword will perish by the sword”(Matthew 26:52).
Then Jesus asked the leaders of the Jews an important question, “Have you come out as against a robber, with swords and clubs?” (vs. 52). In other words, you’ve come out here with weapons as if I was some sort of violent criminal.
The swords had served their purpose. For those who chose to see Jesus as a criminal leader, a couple of swords amongst twelve men was enough for them to say, “See! He’s a criminal.” But those who have eyes to see and ears to hear, know Jesus was not a man of violence nor a criminal. He was the One healing the pain caused by violence, saying, “No more of this.”
This is a challenging passage, but it’s pretty clear in the context that Jesus is not condoning violence in any way. To use this passage to justify violence ignores the context entirely.