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.
When Jesus said, "It is finished," He was quoting from the final verse of Psalm 22, where the Greek word "finished" is the same as the Hebrew word "done." This verse implies that Jesus kept His head erect, until He laid down His life, as stated in John 10:18.
John 10:18 "No man taketh it from Me, but I lay it down of Myself. I have power to lay it down, and I have power to take it again. This commandment have I received of My Father."
Jesus came to destroy death (which is the devil) and provide a way to eternal life.
He that committeth sin is of the devil; for the devil sinneth from the beginning. For this purpose the Son of God was manifested, that he might destroy the works of the devil. 1 John 3:8 (KJV)
. . . . .
In Psalm 22, it is vividly written about the death and resurrection of Jesus Christ the Messiah:
My praise shall be of You in the great assembly; I will pay My vows before those who fear Him. The poor shall eat and be satisfied; Those who seek Him will praise the LORD. Let your heart live forever! All the ends of the world shall remember and turn to the LORD, And all the families of the nations shall worship before You. For the kingdom is the LORD's, And He rules over the nations. All the prosperous of the earth shall eat and worship; all those who go down to the dust Shall bow before Him, Even he who cannot keep himself alive. A posterity shall serve Him. It will be recounted of the Lord to the next generation, They will come and declare His righteousness to a people who will be born, that He has done this.
- Psalm 22:25-31