"Now is my soul troubled; and what shall I say? Father, save me from this hour: but for this cause came I unto this hour" (John 12:27).
In "Biblical Perspective" Randall McElwain writes:

There were two possible responses to the question, “What shall I say?” “A prayer to be saved from the hour . . . or a prayer that the Father’s name would be glorified” (New Bible Comm.). Although Jesus was troubled by the prospect of crucifixion, the first response was impossible in light of His surrender to the will of His Father. This left the second option, Father, glorify thy name. Jesus provided a model for every Christian; just as He surrendered His will to His Father’s will, we must surrender our desires, ambitions, and goals to the will of our Heavenly Father. Then came there a voice from heaven, saying, I have both glorified it, and will glorify it again. At the beginning of Jesus’ ministry, a voice from heaven authenticated His min- istry (Matt. 3:17). Later, at the Transfiguration, the voice from heaven testified to His divine sonship (Luke 9:28-36). Now, at the end of His ministry, the voice from heaven testified that His death was part of the Father’s plan.

Source: Jesus, Son of God: Adult Teacher's Insights, page 12.