General points
If Jesus is God then he should be able to save himself and not need to ask to be saved, otherwise at best, he is a lesser God/not equal to the Father. As we will see, he clearly prays to be saved, so why the need if he is equal/God?
On the basis that he is not God then he is reliant on God as things are not in his control, hence, not as I will, but as you will.
Jesus prayers to be saved
Hebrews 5:7
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;
Luke 22: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.
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.”
[numerous passages of Jesus praying]
Jesus prayed like others did, who were also saved.
Jonah 2:7 (prayed and was alive)
When my life was fainting away (not dead), I remembered the Lord, and my prayer came to you, into your holy temple.
[If Jesus came to die for our sins, why did he so often pray to be saved? God or son of God it makes no sense]
The question really is, was he heard/saved
The problem you have with the above questions is that it causes considerable conflict with passages in the NT and a conflict between the NT & OT.
John 11:41, 42
41... Father, I thank thee that thou heardest me. 42 And I knew that thou hearest me always."
Mark 11:24
Therefore I tell you, whatever you ask for in prayer, believe that you have received it, and it will be yours.
Luke 4:10, 11
10 for it is written, He shall give his angels charge concerning thee, to guard thee: 11 and, On their hands they shall bear thee up, Lest haply thou dash thy foot against a stone.
John 11:41, 42
41 Then they took away the stone from the place where the dead man was lying. And Jesus lifted up His eyes and said, “Father, I thank You that You have heard Me. 42 And I know that You always hear Me, but because of the people who are standing by I said this, that they may believe that You sent Me.”
Psalm 20:6
Now I know that the LORD saves His anointed
Psalms 34:20, 22
20 He protects all his bones; not one of them will be broken
...
22 The LORD will rescue his servants; no one who takes refuge in him will be condemned.
Psalms 9:13
O you who lift me up from the gates of death
Psalm 116:16
Truly I am your servant, LORD; I serve you just as my mother did; you have freed me from my chains.
Psalm 41:9-13
9 Even my close friend, someone I trusted, one who shared my bread, has turned against me. 10 But may you have mercy on me, LORD; raise me up, that I may repay them. 11 I know that you are pleased with me, for my enemy does not triumph over me. 12 Because of my integrity you uphold me and set me in your presence forever. 13 Praise be to the LORD, the God of Israel, from everlasting to everlasting. Amen and Amen.
Psalm 91:10-16
10 no harm will overtake you, no disaster will come near your tent. 11 For he will command his angels concerning you to guard you in all your ways; 12 they will lift you up in their hands, so that you will not strike your foot against a stone. 13 You will tread on the lion and the cobra; you will trample the great lion and the serpent. 14 “Because he loves me,” says the LORD, “I will rescue him; I will protect him, for he acknowledges my name. 15 He will call on me, and I will answer him; I will be with him in trouble, I will deliver him and honor him. 16 With long life I will satisfy him and show him My salvation.”
[There is nothing in the OT that states Jesus would die or be sacrificed.]
Would God sacrifice Jesus
Matthew 9:13
But go and learn what this means: I desire mercy, not sacrifice For I have not come to call the righteous, but sinners.”
Hosea 6:6
For I desire mercy, not sacrifice, and acknowledgment of God rather than burnt offerings.
Deuteronomy 12:31
You must not worship the LORD your God in their way, because in worshiping their gods, they do all kinds of detestable things the LORD hates. They even burn their sons and daughters in the fire as sacrifices to their gods.
Deuteronomy 18:10
Let no one be found among you who sacrifices their son or daughter in the fire, who practices divination or sorcery, interprets omens, engages in witchcraft,
2 Kings 21:6
He sacrificed his own son in the fire, practiced divination, sought omens, and consulted mediums and spiritists. He did much evil in the eyes of the LORD, arousing his anger.
Ezekiel 18:20
The son shall not bear the guilt of the father, nor the father bear the guilt of the son. The righteousness of the righteous shall be upon himself, and the wickedness of the wicked shall be upon himself.
Deuteronomy 24:16
Parents are not to be put to death for their children, nor children put to death for their parents; each will die for their own sin.
[Based on the evidence very unlikely]
Conclusion
Based on the above, it's clear that Jesus prayed earnestly to be saved and was heard and indeed it was prophecies that he would be saved/protected.
There are clearly passages that imply that Jesus died for our sins mainly from Paul, but this doctrine came after Jesus and was taken on board by those in power hundreds of years later who decided what should be in the bible and destroyed anything that did not conform to their opinion.
See the links below for more details: