The Bible is very clear, our right standing (righteousness) and our reconciliation to God, came to us when we were helpless, ungodly sinners. Think of a helpless, drowning man. There was absolutely nothing we could do to save ourselves before or after the Lifeguard arrived. He watched and waited for the right time, until we stopped struggling so that we would not hinder His work with our struggle. He did all of the saving as we rested in His arms.
For while we were still helpless, at the right time, Christ died for the ungodly. For rarely will someone die for a just person — though for a good person perhaps someone might even dare to die. But God proves his own love for us in that while we were still sinners, Christ died for us. How much more then, since we have now been declared righteous by his blood, will we be saved through him from wrath. For if, while we were enemies, we were reconciled to God through the death of his Son, then how much more, having been reconciled, will we be saved by his life. And not only that, but we also rejoice in God through our Lord Jesus Christ, through whom we have now received this reconciliation. Rom 5:6-11 CSB
Self-righteousness and pride have no part in our salvation. The entire work of our reconciliation with God is a work of God. The filthy rags of our own righteous (Isaiah 64:6) did nothing to save us and can do nothing to enhance the perfect, finished work, of Christ. Salvation is 1,000 percent by faith in the Son of God who loves us. It was all the work of God, who did not count our sins, but instead, reconciled us to Himself, making us a new creation in Christ.
Therefore if anyone is in Christ, he is a new creature; the old things passed away; behold, new things have come. Now all these things are from God, who reconciled us to Himself through Christ and gave us the ministry of reconciliation, namely, that God was in Christ reconciling the world to Himself, not counting their trespasses against them, and He has committed to us the word of reconciliation. 2 Cor 5:17-19 NAS
Salvation is 1,000 percent about faith in Jesus and His finished work. As Jesus is, so are we in this world. He has reconciled us to God the Father and our born-again Spirit is holy, unblemished and blameless in God’s presence.
For God was pleased to have all His fullness dwell in Him, and through Him to reconcile to Himself all things, whether things on earth or things in heaven, by making peace through the blood of His cross. Once you were alienated from God and were hostile in your minds because of your evil deeds. But now He has reconciled you by Christ’s physical body through death to present you holy, unblemished, and blameless in His presence— if indeed you continue in your faith, established and firm, not moved from the hope of the gospel you heard, which has been proclaimed to every creature under heaven, and of which I, Paul, have become a servant. Col 1:19-23 BSB
It is only Jesus unfailing righteousness that gives our Spirit life.
If Christ is in you, though the body is dead because of sin, yet the spirit is alive because of (HIS) righteousness. Rom 8:10 NAS (emphasis mine)
It is only Jesus infallible righteousness that could seat us in His finished work at the right hand of the Father.
But God, being rich in mercy, because of His great love with which He loved us, even when we were dead in our transgressions, made us alive together with Christ (by grace you have been saved), and raised us up with Him, and seated us with Him in the heavenly places in Christ Jesus, so that in the ages to come He might show the surpassing riches of His grace in kindness toward us in Christ Jesus. For by grace you have been saved through faith; and that not of yourselves, it is the gift of God; not as a result of works, so that no one may boast. Eph 2:4-9 NASNo weapon that is formed against thee shall prosper; and every tongue that shall rise against thee in judgment thou shalt condemn. This is the heritage of the servants of the LORD, and their righteousness is of me, saith the LORD. Isaiah 54:7 KJV
Many more New Covenant Bible Studies HERE. Jesus poured out His blood for the New Covenant of grace and truth, replacing the Old Covenant law of Moses. Believers are exclusively under the New Covenant, the last will and testament of Jesus that began after the cross.
And in the same way He took the cup after they had eaten, saying, "This cup which is poured out for you is the new covenant in My blood. Luke 22:20