1 John 2:3

And by this, we know that we have known him, if we keep his commandments.

1 John 2:29

If you know that he is righteous, you know that every one who works righteousness, has been begotten by him.

1 John 3:7

Little children, let no one deceive you: he who works righteousness, is righteous, even as He is righteous.

1 John 5:2-5

By this we know that we love the children of God, when we love God, and keep his commandments.

Revelation 22:14

(Happy are they who keep his commandments, that they may have the privilege to eat of the tree of life; and they shall enter by the gates into the city.

Treasury of Scripture Knowledge

Summary

But if a man be just, and do that which is lawful and right,

Bible References

If

1 John 2:3
And by this, we know that we have known him, if we keep his commandments.
1 John 3:7
Little children, let no one deceive you: he who works righteousness, is righteous, even as He is righteous.
1 John 5:2
By this we know that we love the children of God, when we love God, and keep his commandments.
Revelation 22:14
(Happy are they who keep his commandments, that they may have the privilege to eat of the tree of life; and they shall enter by the gates into the city.