Having spoken about the appearance of antichrists, and that all their teaching is corrupt, and having sufficiently persuaded the believers to hold unwaveringly to the teaching in which they were instructed, the apostle then mentions the reward appointed for this, so that by the brightness of the reward he might strengthen them even more, and says: "abide in Him." For what purpose? So that when He appears, we may have boldness before Him. For what can be more glorious or more desirable than boldness, that is, that when we reveal our labors in the present life, we may do so with boldness, not be...ing ashamed in the least, at His coming? And since some might ask what one must do to become well-pleasing to Him, the apostle teaches this as well, saying: if you have known that He is righteous, then without doubt you also know that everyone who practices righteousness is born of Him; for the righteous one begets righteous ones. And how great an honor and boldness this bestows, each of you knows, as well as the love and goodness that He grants you. For you know that He has given you the right to be and to be called His children. But if those who belong to the world do not know this, that is, that you are children of God, do not marvel at this; for they do not know you because they have not known Him either, Who adopted you. By "the world" he means people who are wicked. Then, since he has proven the sonship, he speaks more clearly about the glory and boldness set before the adopted: "beloved, we are now children of God."
Source: Commentary on 1 John