On the cross, the wrath of God was satisfied and the love of God was magnified. God was not take by surprise; rather “God did not spare His own Son, but gave Him up for us all.” The fulfillment of many prophecies during the crucifixion underscores that Jesus was the one sent by God’s foreknowledge and plan to take away the sin of the world.
So they took Jesus, and he went out, bearing his own cross, to the place called The Place of a Skull, which in Aramaic is called Golgotha. There they crucified him, and with him two others, one on either side, and Jesus between them. Pilate also wrote an inscription and put it on the cross. It read, “Jesus of Nazareth, the King of the Jews.” Many of the Jews read this inscription, for the place where Jesus was crucified was near the city, and it was written in Aramaic, in Latin, and in Greek. So the chief priests of the Jews said to Pilate, “Do not write, ‘The King of the Jews,’ but rather, ‘This man said, I am King of the Jews.’” Pilate answered, “What I have written I have written.”
When the soldiers had crucified Jesus, they took his garments and divided them into four parts, one part for each soldier; also his tunic. But the tunic was seamless, woven in one piece from top to bottom, so they said to one another, “Let us not tear it, but cast lots for it to see whose it shall be.” This was to fulfill the Scripture which says,
“They divided my garments among them, and for my clothing they cast lots.”
So the soldiers did these things, but standing by the cross of Jesus were his mother and his mother’s sister, Mary the wife of Clopas, and Mary Magdalene. When Jesus saw his mother and the disciple whom he loved standing nearby, he said to his mother, “Woman, behold, your son!” Then he said to the disciple, “Behold, your mother!” And from that hour the disciple took her to his own home.
After this, Jesus, knowing that all was now finished, said (to fulfill the Scripture), “I thirst.” A jar full of sour wine stood there, so they put a sponge full of the sour wine on a hyssop branch and held it to his mouth. When Jesus had received the sour wine, he said, “It is finished,” and he bowed his head and gave up his spirit.
John 19:16b-30 (ESV)