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:
When he rose from prayer and went back to the disciples, he found them asleep, exhausted from sorrow. "Why are you sleeping?" he asked them. "Get up and pray so that you will not fall into temptation."
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.