When we search the Bible about righteousness, it is written in Romans chapter 3 verse 10 says, "there is no one righteous, no not one." After reading this, people can naturally think, "Of course, there is no one righteous."
But, in Genesis, it is written that Noah was a just man. Also, again in Romans, it tells us that "the just shall live by faith". James chapter 5:16 tells us, "the fervent prayer of the righteous man availeth much."
There are three parts to this: there are sinners, there are righteous people, and lastly, there is a process of how sinners become righteous.