2 John 1:9 in the King James Version
Whosoever transgresseth, and abideth not in the doctrine of Christ, hath not God. He that abideth in the doctrine of Christ, he hath both the Father and the Son.
Context
8 Watch yourselves, that we don’t lose the things which we have accomplished, but that we receive a full reward.
9 Whoever transgresses and doesn’t remain in the teaching of Christ doesn’t have God. He who remains in the teaching has both the Father and the Son.
10 If anyone comes to you and doesn’t bring this teaching, don’t receive him into your house, and don’t welcome him,