Romans 6:6 We know that our old self was crucified with him so that the sinful body might be destroyed, and we might no longer be enslaved to sin. 7 For he who has died is freed from sin.
Freed is (in Greek) δεδικαίωται and that word means be righteous.
1Corinthians 6:9 Do you not know that the unrighteous will not inherit the kingdom of God? Do not be deceived; neither the immoral, nor idolaters, nor adulterers, nor sexual perverts, 10 nor thieves, nor the greedy, nor drunkards, nor revilers, nor robbers will inherit the kingdom of God. 11 And such were some of you. But you were washed, you were sanctified, you were justified in the name of the Lord Jesus Christ and in the Spirit of our God.
Here "justified" is in Greek ἐδικαιώθητε and it means made just.
These verses are not about an imputed righteousness, at least not primarily and exclusively.
Freed is (in Greek) δεδικαίωται and that word means be righteous.
1Corinthians 6:9 Do you not know that the unrighteous will not inherit the kingdom of God? Do not be deceived; neither the immoral, nor idolaters, nor adulterers, nor sexual perverts, 10 nor thieves, nor the greedy, nor drunkards, nor revilers, nor robbers will inherit the kingdom of God. 11 And such were some of you. But you were washed, you were sanctified, you were justified in the name of the Lord Jesus Christ and in the Spirit of our God.
Here "justified" is in Greek ἐδικαιώθητε and it means made just.
These verses are not about an imputed righteousness, at least not primarily and exclusively.