Respectfully opinion only in pondering.This flows in content with
Far to many Biblical Verses to list here, which explains why God found them to be righteous before Him. Abraham? Noah? Samuel? Elijah? Enoch? Lot? Job? Kings> David? Asa? Hezekiah? Josiah?
Genesis 15:6 " And he believed the Lord and the Lord reckoned it to him as righteousness" He believed in His Spoken Word and choose to serve, obey, observe and live by it also? When reading the whole story of Abraham Life.
Ja 2:21-26 " You see then how that by works a man is justified and not by faith alone"
James 1:19 " You must understand this my beloved let everyone be quick to listen, slow to speak, slow to anger; for your anger does not produce God’s righteousness. Therefore rid yourselves of all sordidness and rank growth of wickedness, and welcome with meekness the implanted word that has the power to save your soul" His Spoken Word live by?
1 Luke 1:5-7 “In the days of Herod, King of Judea, there was a priest named Zechariah of the priestly division of Abijah; his wife was from the daughters of Aaron, and her name was Elizabeth . Both were righteous in the eyes of God, observing all the commandments and ordinances of the Lord blamelessly”
2: Peter 2:7-10 Speaks of Lots righteousness
Then we have Matthew 7: 21 " " Not everyone who says to me, " Lord, Lord, will enter the Kingdom of heaven only who does the will of my Father in Heaven. On that day many will say to me, Lord, Lord, did we not prophesy in your name, and cast our demons in you name and do many deeds of power in your name? Then I will declare to them " I never knew you; go away from me, you evildoers"
Notice the word>>only< who >>does the will>of my Father? Will find all in OT whom God found to be faithful to him by how they lived daily, obeyed, observed, served him and others justly, thus called Righteous before him?
James flows in what is written through out the whole Bible in what the word Righteousness means before God and how God judges those to be found living Righteously before Him.
James 2 :18 " But someone will say, "You have faith and I have works. Show me your faith apart from your works and I by my works will show you my faith.
James 2:20 “Do you want to be shown, you senseless person that faith apart from works is barren?”
21) Was not our ancestor Abraham justified by works when he offered his son Isaac on the Altar? You see faith was active along with his works"
James 2:25 " Likewise was not Rahab the prostitute also justified by works when she welcomed the messengers and sent them out by another road?
James 26 " For just as the body without the spirit is dead, so faith without works is also dead".
Cannot believe this is still a topic when the whole Bible makes it very clear from the Front of the bible to the back of the Bible>>>all flows in content.