We are justified by faith.... Not of our own works (Good or Bad). Not because we abstain from bad stuff and do good stuff. Our faith justifies us.

Rom 5:1
5:1 Therefore being justified by faith, we have peace with God through our Lord Jesus Christ:
KJV


But what is faith?

Heb 11:1
11:1 Now faith is the substance of things hoped for, the evidence of things not seen.
KJV

How do you get faith?

Rom 10:13-17
13 For whosoever shall call upon the name of the Lord shall be saved.

14 How then shall they call on him in whom they have not believed? and how shall they believe in him of whom they have not heard? and how shall they hear without a preacher?

15 And how shall they preach, except they be sent? as it is written, How beautiful are the feet of them that preach the gospel of peace, and bring glad tidings of good things!

16 But they have not all obeyed the gospel. For Esaias saith, Lord, who hath believed our report?

17 So then faith cometh by hearing, and hearing by the word of God.
KJV

Let's get a second scripture for a witness....

1 Cor 1:21
21 For after that in the wisdom of God the world by wisdom knew not God, it pleased God by the foolishness of preaching to save them that believe.KJV

Funny.... God calls it foolishness! But PREACHING and HEARING is how you get justified.... Not only that, you must walk in it and believe it.