1 John 2:29

29 If you know that he is righteous, you know that everyone who does what is right has been born of him.

Read 1 John 2:29 Using Other Translations

If ye know that he is righteous, ye know that every one that doeth righteousness is born of him.
If you know that he is righteous, you may be sure that everyone who practices righteousness has been born of him.
Since we know that Christ is righteous, we also know that all who do what is right are God’s children.