Jesus was speaking/singing a hymn - Psalm chapter 22 - it was a prophecy about him. He was in fact witnessing to those that still had an ear to listen.
1 My God, my God, why have you forsaken me?
Why are you so far from saving me,
so far from the words of my groaning?
2 O my God, I cry out by day, but you do not answer,
by night, and am not silent.
3 Yet you are enthroned as the Holy One;
you are the praise of Israel. [1]
4 In you our fathers put their trust;
they trusted and you delivered them.
5 They cried to you and were saved;
in you they trusted and were not disappointed.
6 But I am a worm and not a man,
scorned by men and despised by the people.
7 All who see me mock me;
they hurl insults, shaking their heads:
8 "He trusts in the LORD ;
let the LORD rescue him.
Let him deliver him,
since he delights in him."
[edited to add verse]