The following comes from the April 2019 Ensign.
Trials can produce resentment or discouragement. The humility you and I need for the Lord to lead us by the hand comes from faith. It comes from faith that God really lives, that He loves us, and that what He wants—hard as it may be—will always be best for us.
The Savior showed us that humility. You have read of how He prayed in the Garden of Gethsemane while He was suffering a trial on our behalf beyond our ability to comprehend or to endure or even for me to describe. You remember His prayer: “Father, if thou be willing, remove this cup from me: nevertheless not my will, but thine, be done” (Luke 22:42).
He knew and trusted His Heavenly Father, the great Elohim. He knew that His Father was all-powerful and infinitely kind. The Beloved Son asked in humble words—like those of a little child—for the power of deliverance to help Him.
The Father did not deliver the Son by removing the trial. For our sakes He did not do that, but He allowed the Savior to finish the mission He came to perform. Yet we can forever take courage and comfort from knowing of the help that the Father did provide:
“And there appeared an angel unto him from heaven, strengthening him.
“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.
“And when he rose up from prayer, and was come to his disciples, he found them sleeping for sorrow,
“And said unto them, Why sleep ye? rise and pray, lest ye enter into temptation” (Luke 22:43–46).
The Savior prayed for deliverance. What He was given was not an escape from the trial but comfort enough to pass through it gloriously.