If Jesus came to be crucified, why did he ask God to save him from crucifixion!

Matthew

Mat 26:37-42 KJV 37 And he took with him Peter and the two sons of Zebedee and began to be sorrowful and very heavy. 38 Then saith he unto them, my soul is exceeding sorrowful, even unto death: tarry ye here, and watch with me. 39 And he went a little further, and fell on his face, and prayed, saying, O my Father, if it be possible, let this cup pass from me: nevertheless, not as I will, but as thou wilt.

40 And he cometh unto the disciples, and findeth them asleep, and saith unto Peter, What, could ye not watch with me one hour? 41 Watch and pray, that ye enter not into temptation: the spirit indeed is willing, but the flesh is weak. 42 He went away again the second time, and prayed, saying, O my Father, if this cup may not pass away from me, except I drink it, thy will be done.

Mark

Mar 14:34-39 KJV 34 And saith unto them, my soul is exceeding sorrowful unto death: tarry ye here, and watch. 35 And he went forward a little, and fell on the ground, and prayed that, if it were possible, the hour might pass from him.

36 And he said, Abba, Father, all things are possible unto thee; take away this cup from me: nevertheless, not what I will, but what thou wilt. 37 And he cometh, and findeth them sleeping, and saith unto Peter, Simon, sleepest thou? couldest not thou watch one hour? 38 Watch ye and pray, lest ye enter into temptation. The spirit truly is ready, but the flesh is weak. 39 And again he went away, and prayed, and spake the same words.

Luke

Luk 22:39-44 KJV 39 And he came out, and went, as he was wont, to the mount of Olives; and his disciples also followed him. 40 And when he was at the place, he said unto them, pray that ye enter not into temptation. 41 And he was withdrawn from them about a stone’s cast, and kneeled down, and prayed, 42 Saying, Father, if thou be willing, remove this cup from me: nevertheless, not my will, but thine, be done. 43 And there appeared an angel unto him from heaven, strengthening him. 44 And being in an agony he prayed more earnestly: and his sweat was as it were great drops of blood falling down to the ground.

Hebrews

Heb 5:7 KJV Who in the days of his flesh, when he had offered up prayers and supplications with strong crying and tears unto him that was able to save him from death and was heard in that he feared.

Allah knows Best.