Jesus was not only resolute in His intention to go to the cross, but God intentionally planned the death of Christ. Consider, for example, the number of Old Testament prophecies that John alone says were fulfilled at the crucifixion of Christ (other Gospel writers offer even more prophetic fulfillments in their crucifixion accounts):
Jesus’ tunic remained untorn: “So they said to one another, ‘Let us not tear it, but cast lots for it, to decide whose it shall be’; this was to fulfill the Scripture: ‘THEY DIVIDED MY OUTER GARMENTS AMONG THEM, AND FOR MY CLOTHING THEY CAST LOTS.’” (John 19:24 NASB; quotation of Psalm 22:18)
Jesus, the One who satisfies all men, declared His thirst: “After this, Jesus, knowing that all things had already been accomplished, to fulfill the Scripture, said, ‘I am thirsty.’” (John 19:28 NASB; a reference to Pss. 42:1-2; 63:1 and a quotation of Ps. 69:21)
Jesus’ body remained unbroken as the true Passover lamb: “but coming to Jesus, when they saw that He was already dead, they did not break His legs.… For these things came to pass to fulfill the Scripture, “NOT A BONE OF HIM SHALL BE BROKEN.” (John 19:33, 36 NASB; quotations of Ex. 12:46; Ps. 34:20)
Jesus is the One to whom others will look for salvation in the future: “And again another Scripture says, ‘THEY SHALL LOOK ON HIM WHOM THEY PIERCED.’” (John 19:36–38 NASB; quotation of Zech. 12:10)
The death of Christ was no accident. It was the intentional purpose and plan of the Father to crush His Son so we would be redeemed from sin to be made righteous so we might be worthy and glorifiers of the Son for all eternity.