Jonathan Edwards writes:
So Christ, our second surety (in whose justification all whose surety he is, are virtually justified), was not justified till he had done the work the Father had appointed him, and kept the Father’s commandments through all trials, and then in his resurrection he was justified. When he had been put to death in the flesh, but quickened by the Spirit, 1 Peter 3:18, then he that was manifest in the flesh was justified in the Spirit, 1 Timothy 3:16.
But God, when he justified him in raising him from the dead, did not only release him from his humiliation for sin, and acquit him from any further suffering or abasement for it, but admitted him to that eternal and immortal life, and to the beginning of that exaltation that was the reward of what he had done.
Excerpted from "Justification by Faith."