I John 2:3-11 NKJV
Now by this we know that we know Him, if we keep His commandments: He who says, “I know Him,” and does not keep His commandments, is a liar, and the truth is not in him. But whoever keeps His word, truly the love of God is perfected in him.
By this we know that we are in Him: He who says he abides in Him ought himself also to walk just as He walked.
Brethren, I write no new commandment to you, but an old commandment which you have had from the beginning. The old commandment is the word which you heard from the beginning. Again, a new commandment I write to you, which thing is true in Him and in you, because the darkness is passing away, and the true light is already shining.
He who says he is in the light, and hates his brother, is in darkness until now. He who loves his brother abides in the light, and there is no cause for stumbling in him. But he who hates his brother is in darkness and walks in darkness, and does not know where he is going, because the darkness has blinded his eyes.
Knowing Him is associated with keeping His commandments. Jesus simplified this when the pharisees asked Him what is the greatest commandment. Click here to read "the ten commandments simplified"
ABIDING IN HIM
To abide in Him means to walk as He walked. How did He walk? Jesus' life and ministry is a perfect demonstration of a life of Love and Humility. The Only begotten Son of God left His glory above to become one of us (He was not ashamed to associate Himself with the people made in His Image but now corrupted with sins). He healed all our disease and renew our hope of eternal life.
All these are just what we must think about whenever we need motivations to abide in Him.
Knowing Him and Abiding in Him means we are living our lives in light. He who says He's in light (Knows God and Abides in God) and he who hates his brother is in darkness (he is not in God neither is he abiding in God).
But He who loves His brother is in Light (Knows God and Abides in God) therefore there is no cause for stumbling in Him.
Love God and Love your neighbors. Live a life of Love and Humility. By these, you know Him and you abide in Him.
Have a great day.