While He was still speaking, Judas, one of the Twelve, suddenly arrived. A large mob, with swords and clubs, was with him from the chief priests and elders of the people. His betrayer had given them a sign: “The One I kiss, He’s the One; arrest Him!” So he went right up to Jesus and said, “Greetings, Rabbi!” and kissed Him.
“Friend,” Jesus asked him, “why have you come?”
Then they came up, took hold of Jesus, and arrested Him. At that moment one of those with Jesus reached out his hand and drew his sword. He struck the high priest’s slave and cut off his ear.
Then Jesus told him, “Put your sword back in its place because all who take up a sword will perish by a sword. Or do you think that I cannot call on My Father, and He will provide Me at once with more than 12 legions of angels? How, then, would the Scriptures be fulfilled that say it must happen this way?”
At that time Jesus said to the crowds, “Have you come out with swords and clubs, as if I were a criminal, to capture Me? Every day I used to sit, teaching in the temple complex, and you didn’t arrest Me. But all this has happened so that the prophetic Scriptures would be fulfilled.” Then all the disciples deserted Him and ran away.
Quoted from BibleGateway