When I saw your comment Trevor my thoughts came immediately to what I read here. I include this now for two reasons, one it answers what you were referring to, and secondly some may get some benefit from reading the message, especially those who may feel God is not around, or not as close as they would like or not as close as He usually is.
This is what William Tyndales commentary says
Psalm 22. My God, My God, Why Have You Forsaken Me?
Context
Christian readers almost immediately read
Psalm 22 as pointing to the death of Christ, since it is so often quoted in the Passion Narratives of the New Testament. While we will consider the Christological import of the psalm later (under
Meaning), this song served as a lament for the people of God during the Old Testament period. The title claims that David wrote the song, and there is no good reason to doubt this tradition. The psalm is a prayer by an individual who feels abandoned by God in the midst of the vicious attack of his enemies, and the historical books of the Old Testament record more than one occasion in David’s life that could have produced such a composition. That said, as usual, the psalm is devoid of specific historical references, because it was written not to create a historical record, but for use by later worshippers in a similar, though not necessarily identical, situation.
The psalm begins by asking God why he has been absent from the psalmist (
Psalm 22:1-2), even though Israel praises him and he has rescued his ancestors in the past (
Psalm 22:3-5). Since God is absent, the psalmist’s enemies have demeaned him (
Psalm 22:6-8). He feels sub-human (
v6), even though he has had a relationship with God since birth (
Psalm 22:9-11). He then complains about the harmful actions of his enemies, referring to them using animal analogies (bulls, lions, dogs), and notes his fearful response (
Psalm 22:11-18). He makes one final appeal for help (
Psalm 22:19-21) before concluding his prayer with praise (
Psalm 22:22-31).
Although there are more parts to explain this Psalm in his commentary I include 'Meaning' which was referred to in this part.
Meaning
Psalm 22 is a psalm of lament by a person who does not feel the presence of God in the midst of suffering, but rather experiences fear in the face of persecution by enemies. The well-known Christological sense of the psalm (see below) should not distract us from the fact that the psalm is not a prophecy, but rather a lament which may be a model prayer for worshippers today who can use this psalm to call on God to make himself present in the midst of pain. The confidence and joy expressed at the end can impart hope, as the psalmist moves towards God rather than staying mired in disappointment.
Jesus experienced a similar situation when he was attacked by those who hated him, and so he and the Gospel writers used the psalm to articulate his feelings and the events surrounding his crucifixion. First,
Psalm 22:18 is cited (
Matt 27:35, Mark 15:24, John 19:24) or alluded to (
Luke 23:34) in reference to the soldiers who divided the clothes of the condemned Jesus among themselves. He experienced the taunts and saw the derisive shaking of heads of those who passed by the cross (
Matt 27:39, Mark 15:29, Luke 23:35, referencing
Psalm 22:7-8). Jesus expressed his feeling of divine abandonment by uttering the first verse of
Psalm 22 (
Matt 27:46, Mark 15:34). The Father loved the Son, but sacrificed himself by withdrawing his special presence from him, so the Son could experience the full force of the meaninglessness of the fallen world. He became a curse in order to redeem us ‘from the curse of the law’ (
Gal 3:13). These actual quotations from the first part of
Psalm 22 demonstrate that Jesus and the Gospel writers saw how closely this psalm reflects Jesus’ sufferings and death. The psalm ends with praise. For the psalmist, the praise arises because God rescued him from death. Jesus died, but God rescued him by raising him from the dead. Thus
Heb 2:11-12 quotes Psalm 22:22 which has Jesus announce,
I will declare your name to my brothers and sisters;
in the assembly I will sing your praises.
Tyndale Commentaries - Psalms.