Jesus wasn’t terribly keen on it, actually.
From Matthew 26:
36 Then Jesus came with them to a place called Gethsemane, and said to His disciples, “Sit here while I go over there and pray.” 37 And He took with Him Peter and the two sons of Zebedee, and began to be grieved and distressed. 38 Then He said to them, “My soul is deeply grieved, to the point of death; remain here and keep watch with Me.”
39 And He went a little beyond them, and fell on His face and prayed, saying, “My Father, if it is possible, let this cup pass from Me; yet not as I will, but as You will.” 40 And He came to the disciples and found them sleeping, and said to Peter, “So, you men could not keep watch with Me for one hour? 41 Keep watching and praying that you may not enter into temptation; the spirit is willing, but the flesh is weak.”
42 He went away again a second time and prayed, saying, “My Father, if this cannot pass away unless I drink it, Your will be done.” 43 Again He came and found them sleeping, for their eyes were heavy. 44 And He left them again, and went away and prayed a third time, saying the same thing once more.
It is suggested elsewhere that He had a way out of crucifixion, but chose not to take it.
“For God so loved the world…”
@JLeslie The Jews as a whole not accepting Jesus as the Messiah at that time doesn’t affect the fact. Indeed, prophecy (Isaiah, I think) states that the disbelief was the expected outcome.