In Mark's Gospel, the last 24 hours in the life of Jesus form a unique chiastic structure, with eight periods of just three hours each:
A The celebration of the Passover Feast, which becomes the Last Supper, beginning "when it was evening" (Mark 14:17), which was 6 pm by first-century Jewish reckoning. The Passover meal typically took three hours and was concluded by singing a hymn.
B When was about 9 p.m. Mark then has Jesus and the disciples go to the Garden of Gethsemane, where Jesus went to pray, asking that, if it be possible, his Father take this cup (his destiny to be crucified) away. He returned three times and each time found the disciples asleep, measuring three hours of time by asking, "Could you not sleep one hour?".
C The betrayal by Judas, the darkest deed in human history, came next, occurring at the stroke of midnight. This will be reflected by the darkness at midday.
D At 3:00 a.m., Jesus was led away for a trial before the high priest and other senior priests and elders. We know the time of the first trial because Peter's threefold denial of Jesus followed, once each hour until the cock crowed, marking the watch between 3 a.m. and 6 a.m., known as cockcrow.
E When it was 6 o'clock, "As soon as it was morning", Jesus was led by the chief priests, scribes and elders for trial by Pontius Pilate.
D' At 9 o'clock: "It was the third hour when they crucified him."
C' When "the sixth hour had come" (12 noon), darkness covered the whole earth, reflecting the betrayal at 12 midnight.
B' The three hours of darkness, until 3 p.m. mirror the agony in the Garden of Gethsemene. Jesus last words, "My God. My God, why hast thou forsaken me?" reflect the recognition that his prayer in the Garden has not been answered.
A' Joseph of Arimathea then asked Pilate for the body of Jesus, so that he could be buried before the Sabbath began at 6 p.m., when the sun went down.
In this structure, event B' represents the moment when Jesus said, “My God, My God, why have You forsaken Me?” and matches event B in the Garden of Gethsemene, where Jesus asked that, if it be possible, his Father take this cup (his destiny to be crucified) away:
Mark 14: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.
Jesus felt forsaken because, in his prayer in the Garden, he has asked for this cup to be taken away from him, although he had also said that if it be God's will, he would submit obediently.
There is no particular correlation between Psalm 22:1 and Mark 14:36, other than that the words suited the evangelist's message for Jesus. The author of Matthew's Gospel recognised that these words were from Psalm 22 and retained them when copying from Mark. However, the authors of Luke and John substituted different words that suited the different theological requirements of each evangelist:
Luke 23:46: And when Jesus had cried with a loud voice, he said, Father, into thy hands I commend my spirit: and having said thus, he gave up the ghost.
John 19:30: When Jesus therefore had received the vinegar, he said, It is finished: and he bowed his head, and gave up the ghost.