To know God is to keep His commandments. His commandments protect us from the penalty of sin. For sin is pleasing to the eyes, a treat to the senses, but stings as a scorpion, never diminishing the pain of its venom on the heart of its victim.
The Apostle John talks about knowing God this way:
“And by this we know that we have come to know him, if we keep his commandments. Whoever says ‘I know him’ but does not keep his commandments is a liar, and the truth is not in him.” (1 John 2:3-4)
Is it a wonder when Jesus said, “On that day many will say to me, ‘Lord, Lord, did we not prophesy in your name, and cast out demons in your name, and do many mighty works in your name?’ And then will I declare to them, ‘I never knew you; depart from me, you workers of lawlessness’” (Matthew 7:22-23) that He places high regard to knowing Him as a people who keep his commandments?
We are not workers of lawlessness. Knowing God is about doing what Jesus said, with a purity of heart and a spirit of humility. What we need is God’s heart in us. He will then change us to be more like Him, demonstrating love, joy, peace, patience, kindness, goodness, faithfulness, gentleness and self-control. The fruits of His spirit will be evident, and Christ Jesus will not have an opportunity to say that He never knew us.
To know God is to keep His commandments.