Theophylact of Bulgaria
This refers to what was said a little earlier (1 Jn 4:2): every spirit that confesses the Lord Jesus, Who has come in the flesh.
The apostle has sufficiently proved that believers are children of God and that God abides in them. He proved this by their love for one another, because the Holy Spirit has been given to them.
After this he returns to the speech already mentioned and says: whoever confesses that Jesus is the Son of God, God abides in him. For, as was said above, every spirit that confesses Jesus Christ, Who has come in the flesh, is of God.
By these words the apostle also expresses another truth. Those who confess in this way and have the abiding Spirit within themselves, that is, God, themselves also abide in God. How? Through love for one another.
And having recalled love, he repeats everything he has said about love, in order to establish the teaching concerning love more firmly.