In context
23No one who denies the Son has the Father; whoever confesses the Son has the Father also. 24As for you, let what you heard from the beginning remain in you. If what you heard from the beginning remains in you, you too will remain in the Son and in the Father. 25And this is the promise he made to us: eternal life. 26I have written these things to you about those who would deceive you. 27As for you, the anointing you received from him remains in you, and you have no need for anyone to teach you. But as his anointing teaches you about everything—and is true, not false—just as it has taught you, remain in him.
