We are righteous in the eyes of God through our faith in that Jesus paid the debt for sin for the world.
Rom_4:3 For what saith the scripture? Abraham believed God, and it was counted unto him for righteousness. 5 But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness.
Through our faith built in the presence of God we are counted righteous.
Rom_10:17 So then faith cometh by hearing, and hearing by the word of God. Jas_2:22 Seest thou how faith (Of Abraham) wrought with his works, and by works was faith made perfect?
Through faith we claim the promises to the righteous.
Psa_34:15 The eyes of the LORD are upon the righteous, and his ears are open unto their cry.
Psa 118:19 Open to me the gates of righteousness: I will go into them, and I will praise the LORD: 20This is the door of the Lord's house; the workers of righteousness will go in through it.
Pro_15:29 The LORD is far from the wicked: but he heareth the prayer of the righteous.
Pro_10:24 The fear of the wicked, it shall come upon him: but the desire of the righteous shall be granted.
Pro_11:8 The righteous is delivered out of trouble, and the wicked cometh in his stead.
Pro_13:21 Evil pursueth sinners: but to the righteous good shall be repayed.
Psa_5:12 For thou, LORD, wilt bless the righteous; with favour wilt thou compass him as with a shield.
Psa_11:5 The LORD trieth the righteous: but the wicked and him that loveth violence his soul hateth.
Psa_34:19 Many are the afflictions of the righteous: but the LORD delivereth him out of them all.
Psa_37:25 I have been young, and now am old; yet have I not seen the righteous forsaken, nor his seed begging bread.
Psa_37:39 But the salvation of the righteous is of the LORD: he is their strength in the time of trouble.
Psa_55:22 Cast thy burden upon the LORD, and he shall sustain thee: he shall never suffer the righteous to be moved.
Psa_92:12 The righteous shall flourish like the palm tree: he shall grow like a cedar in Lebanon.
Pro_10:3 The LORD will not suffer the soul of the righteous to famish: but he casteth away the substance of the wicked.