Jesus is our righteousness
Jesus was sent to fulfil all righteousness. And what that meant to the Jew was to obey every jot and tittle of the Law.
Because now Jesus is not acting in His baptism for Himself, but for His people. And if His people are required to keep the Ten Commandments, He keeps the Ten Commandments. If His people are now required to submit to this baptismal ritual, He submits to it on their behalf. Because the redemption that is brought by Christ is not restricted to His death on the cross.
We've seen that in the work of redemption God didn't send Jesus to earth on Good Friday and say, "Die for the sins of your people and that will take care of it."
No. Jesus not only had to die for our sins, but He had to live for our righteousness.
If all Jesus did was die for your sins, that would remove all of your guilt, and that would leave you sinless in the sight of God, but not righteous. You would be innocent, but not righteous because you haven't done anything to obey the Law of God which is what righteousness requires.
So we have a doctrine in theology that refers to the active obedience of Jesus, as distinguished from the passive obedience of Jesus. And this doctrine is in great dispute right now among dispensational thinkers.
The passive obedience of Christ refers to His willingness to submit to the pain that is inflicted upon Him by the Father on the cross in the atonement.
He passively receives the curse of God there. The active obedience refers to His whole life of obeying the Law of God whereby He qualifies to be the Savior. He qualifies to be the Lamb without blemish. He qualifies for the song, "Worthy is the Lamb who was slain," through His total righteousness. He fulfils the Law's demands, and if you remember the covenant with Moses, everybody who fulfills the Law receives the blessing, those who disobey the Law receive the curse.
What does Jesus do? He obeys the Law perfectly, receives the blessing, and not the curse. But there's a double imputation that we will look at later at the cross, where my sin is transferred to His account, my sin is carried over and laid upon Him in the cross.
But in our redemption, His righteousness is imputed to us—which righteousness He wouldn't have if He didn't live this life of perfect obedience. So what I'm saying to you is that His life of perfect obedience is just as necessary for our salvation as His perfect atonement on the cross. Because there's double imputation. My sin to Him, His righteousness to me. So, that is what the Scripture is getting at when it says Jesus is our righteousness.