Jn 3:16, Ps 41:9, Zech 11:12, Zech 12:10, Isa 53:7, Zech 13:7, Jn 19:30
When Jesus was arrested by the Jews, Peter cut off the ear of one of Jesus' captors. Jesus stopped Peter from doing that. Jesus could call the angels so he could set himself free. But He was taken by the Jews to accomplish God's plan, the work of Christ. (Mt 26:52-56)
Mt 26:52 Then said Jesus unto him, Put up again thy sword into his place: for all they that take the sword shall perish with the sword. 53 Thinkest thou that I cannot now pray to my Father, and he shall presently give me more than twelve legions of angels? 54 But how then shall the scriptures be fulfilled, that thus it must be? 55 In that same hour said Jesus to the multitudes, Are ye come out as against a thief with swords and staves for to take me? I sat daily with you teaching in the temple, and ye laid no hold on me. 56 But all this was done, that the scriptures of the prophets might be fulfilled. Then all the disciples forsook him, and fled.
It was God's plan to give us His only begotten Son. (Jn 3:16)
Jn 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
God had Christ betrayed by a friend and sold for thirty pieces of silver. (Ps 41:9, Zech 11:12)
Ps 41:9 Yea, mine own familiar friend, in whom I trusted, which did eat of my bread, hath lifted up his heel against me.
Zech 11:12 And I said unto them, If ye think good, give me my price; and if not, forbear. So they weighed for my price thirty pieces of silver.
And God gave Christ to suffer and die for us. (Zech 12:10, Isa 53:7, Zech 13:7)
Zech 12:10 And I will pour upon the house of David, and upon the inhabitants of Jerusalem, the spirit of grace and of supplications: and they shall look upon me whom they have pierced, and they shall mourn for him, as one mourneth for his only son, and shall be in bitterness for him, as one that is in bitterness for his firstborn.
Isa 53:7 He was oppressed, and he was afflicted, yet he opened not his mouth: he is brought as a lamb to the slaughter, and as a sheep before her shearers is dumb, so he openeth not his mouth. Zech 13:7 Awake, O sword, against my shepherd, and against the man that is my fellow, saith the Lord of hosts: smite the shepherd, and the sheep shall be scattered: and I will turn mine hand upon the little ones.
The work of Christ was accomplished by Jesus dying on the cross. (Jn 19:30)
Jn 19:30 When Jesus therefore had received the vinegar, he said, It is finished: and he bowed his head, and gave up the ghost.