Genesis 7:1: Then the Lord said to Noah, “Come into the ark, you and all your household, because I have seen that you are righteous before Me in this generation.Job 1:1-8: There was a man in the land of Uz, whose name was Job; and that man was blameless and upright, and one who feared God and shunned evil. […] Then the Lord said to Satan, “Have you considered My servant Job, that there is none like him on the earth, a blameless and upright man, one who fears God and shuns evil?”Job 2:3: Then the Lord said to Satan, “Have you considered My servant Job, that there is none like him on the earth, a blameless and upright man, one who fears God and shuns evil? And still he holds fast to his integrity, although you incited Me against him, to destroy him without cause.”Luke 1:6: And they were both righteous before God, walking in all the commandments and ordinances of the Lord blameless.James 5:16: Confess your trespasses to one another, and pray for one another, that you may be healed. The effective, fervent prayer of a righteous man avails much.1 John 3:7: Little children, let no one deceive you. He who practices righteousness is righteous, just as He is righteous.

Romans 3:10: As it is written: “There is none righteous, no, not one;Romans 3:23: for all have sinned and fall short of the glory of God,1 John 1:8-10: If we say that we have no sin, we deceive ourselves, and the truth is not in us. If we confess our sins, He is faithful and just to forgive us our sins and to cleanse us from all unrighteousness. If we say that we have not sinned, we make Him a liar, and His word is not in us.

Genesis, Job, Luke, James, and 1 John say that some people are righteous, but Romans and 1 John say that no one is righteous.

The original Hebrew word in these verses for 'righteous' is tam, which doesn't require that the people be 'perfect' or 'sinless'1, only that they are 'complete' or 'morally pure'.