If you know that He is righteous, you know that everyone who practices righteousness is born of Him. (1 John 2:29, NKJV)
The Bible says, “there is none righteous, no not one” (Romans 3:10). Yet, the Scriptures identify many people as righteous (Abel, Noah, Job, Daniel, Joseph, etc.). How is the possible? Nobody is righteous through law-keeping; that requires sinless perfection (and “all have sinned and fall short of the glory of God,” Romans 3:23). The harmony is that these righteous ones were people of faith, and their faith was counted to them for righteousness (Romans 4:3, 5; Philippians 3:9). Note please, the Scripture does not say Christ’s righteousness was imputed to them. Scripture says the sinner’s “faith is accounted for righteousness” (Romans 4:5). We cannot earn righteousness through law-keeping – we are sinners (law breakers)! But, we can “hunger and thirst after righteousness, and be filled (Matthew 5:6). By faith, we can practice righteousness (1 John 2:29). We practice righteousness as we live by faith, following the teachings of the Righteous One. The sinner who is born of God is counted righteous by faith (Romans 1:17). To practice righteousness, be upright in heart and faithful to Jesus, and your faith will be counted for righteousness.