In the gospels of Matthew (27:46) and Mark (15:34) in the Bible, Jesus says
My God, My God, why have you forsaken me?
Is this a sign that Jesus is upset with God?
In the gospels of Matthew (27:46) and Mark (15:34) in the Bible, Jesus says
My God, My God, why have you forsaken me?
Is this a sign that Jesus is upset with God?
Any analysis of this line needs to begin with the understanding that "My God, My God, why have you forsaken me?" is a direct quotation of (and thus a reference to) Psalms 22. Psalm 22 begins by expressing doubt in god, but it ends with a renewed faith in God (e.g. "For he has not despised or scorned the suffering of the afflicted one; he has not hidden his face from him but has listened to his cry for help."). So it's at the very least possible to read "My God, My God, why have you forsaken me?" as an expression of faith in God even during tough times, as opposed to expressing doubt or anger in God.
(Some Christians would point to similarities between Psalm 22 and Jesus' crucifixion as evidence that the old testament contains prophecies of the new testament; needless to say other religions would have a different view on this. However, the question of the prophetic relationship between Psalm 22 and Jesus' crucifixion is an example of a question where literary analysis probably doesn't have a lot to offer.)
As for what emotion Jesus was feeling at this time: my limited understanding of the history of emotion makes me wary of assigning specific emotions in this way. But I think it's worth doing a comparative analysis between Mark and Matthew (where Jesus says "My God, My God, why have you forsaken me?") and Luke and John where Jesus says other things. In Mark and Matthew, Jesus is described as being silent until referencing Psalm 22, after which Jesus dies.
The chief priests accused him of many things. So again Pilate asked him, “Aren’t you going to answer? See how many things they are accusing you of.”
But Jesus still made no reply, and Pilate was amazed.
Contrast that with Luke, where Jesus responds to many of the people talking to him during his crucifixion:
But the other criminal rebuked him. “Don’t you fear God,” he said, “since you are under the same sentence? We are punished justly, for we are getting what our deeds deserve. But this man has done nothing wrong.”
Then he said, “Jesus, remember me when you come into your kingdom.”
Jesus answered him, “Truly I tell you, today you will be with me in paradise.”
I think it's fair to say that Mark's narrative, compared to Luke's narrative, allow a much more robust argument that Jesus felt abandoned. I don't think any text supports an interpretation that Jesus was angry during his crucifixion. For example, Jesus isn't lashing out at anyone.
You might be interested in the article ‘My God, My God’: When Jesus felt abandoned. At the very least there are Christians who do feel that Jesus expressed abandonment in Mark, although not everyone would agree with this.
It's worth mentioning that I doubt this short answer has done justice to this complicated moment in a complicated work, but I doubt any answer could do this line justice.