“But we have no right to execute anyone,” the Jews objected. This happened so that the words Jesus had spoken indicating the kind of death he was going to die would be fulfilled. (John 18:31-32)
The Jews insisted, ” We have a law, and according to that law he must die, because he claimed to be the Son of God.” ( John 19:7)
But they shouted, “Take him away! Take him away! Crucify him” ( John 19:15)
By what kind of death did Jesus die? He died by execution. Not a lynching, though that’s what it was. His execution was his sentence having been accused according to the law of God. The law is good but the charge was false, because, of course, Jesus is the Son of God, yet he died by execution under the law.
I hold that Genesis 2:17 is the foundation for all the law and for the penalty of the law. If you eat from the tree of the knowledge of good and evil you shall surely die, which means in Hebrew you shall be executed by Royal decree. All biblical law follows from this, to restrain sin, teach us how to live and to have an objective measure against which God holds us to account. The sentence remains the same. The death sentence, execution, is what we deserve and which Jesus takes for all who believe.
We will die, then all will be raised and face judgement then be sentenced. The sentence either falls on Christ and so on all who are in Christ, who have died in him and are raised in him to eternal life, or it falls directly on all who are not in Christ, the second death, execution in the lake of fire. (Rev 20:11-15).
Everyone who believes in me will live even though he die and everyone who lives and believes in me will never die. ( John 11:25).