On the night that Jesus was betrayed by Judas Iscariot, one of his followers used a sword to cut off the ear of one of the men who had come to arrest Jesus.
Rather than resist arrest, or allow his followers to engage in violence, Jesus admonished them and told them to stop resisting. Jesus then performed a miracle in which he healed the injured man's ear. Then Jesus cooperated and allowed himself to be arrested.
As explained in the Gospel of Luke:
While he was still speaking a crowd came up, and the man who was called Judas, one of the Twelve, was leading them. He approached Jesus to kiss him, but Jesus asked him, "Judas, are you betraying the Son of Man with a kiss?"
When Jesus' followers saw what was going to happen, they said, "Lord, should we strike with our swords?" And one of them struck the servant of the high priest, cutting off his right ear.
But Jesus answered, "No more of this!" And he touched the man's ear and healed him.
Then Jesus said to the chief priests, the officers of the temple guard, and the elders, who had come for him, "Am I leading a rebellion, that you have come with swords and clubs? Every day I was with you in the temple courts, and you did not lay a hand on me. But this is your hour-when darkness reigns."
Then seizing him, they led him away and took him into the house of the high priest. Peter followed at a distance.
-Luke 22:45-54, NIV translation.
As we learn in the Gospel of John, in John 18:1-14, the follower who used a sword to attack one of the men who had come to arrest Jesus was Peter, Simon Peter the Apostle.
Read more in the book Jesus the Miracle Worker: The 46 miracles of Jesus explained in chronological order (The Jesus Books) -- now available at amazon.