3 Now by this we know that we know Him, if we keep His commandments. 4 He who says, “I know Him,” and does not keep His commandments, is a liar, and the truth is not in him. 5 But whoever keeps His word, truly the love of God is perfected in him. By this we know that we are in Him. 6 He who says he abides in Him ought himself also to walk just as He walked. (1 John 2:3–6, NKJV)
As this passage explains how we are assured that we know God, it provides an inspired commentary on what it means to “walk in the light” in 1 John 1:7. Many are heard to say they “know God” (that they “walk in the light”). John explains how we are assured that we know God; “if” we keep His commandments (v. 3). Knowing God in this passage equates to practicing the truth and “walking in the light” in 1 John 1:6-7. We cannot disobey God and correctly claim to understand or know God. To say we know God while disobeying Him makes us a liar. The love of God does not live in disobedience; it is perfected (matured) by keeping His word (v. 5). One may indeed feel in his heart that they know God, but that is not how the Bible defines knowing God. To know God and to live in the love of God, we must “keep His commandments.” Obeying God is not an attempt to earn your way to heaven; It is the express of your love for God. The “truth is not in” the disobedient; He does not know God. To know God, walk as Christ walked. He always obeyed the Father (John 8:29; 12:48-50).