1John 2:29 If you know that he is righteous, you know that everyone who does what is right has been born of him.
While there is a positional righteousness we receive from Christ, which is namely the forgiveness of sins, yet there is also a righteous behavior characteristic of children of God. What is righteous behavior but simply doing what is right in the eyes of God. True that most people do what they consider right in their own eyes, as Proverbs says, "All a man’s ways seem right to him." Pr 21:2 But to do what is right in the eyes of God is another matter. For "the way of a fool seems right to him, but a wise man listens to advice." Pr 21:15 How do we determine what is right in God's eyes? In cooperation with the Spirit of God through the Word of God in fellowship with the people of God.