2 John 1:9
Anyone who wanders away from this teaching has no relationship with God. But anyone who remains in the teaching of Christ has a relationship with both the Father and the Son.
To walk with Jesus Christ and our Heavenly Father you must abide in the doctrine (teachings) of our Lord Jesus. You can't live the way you want to and walk in close fellowship with God. As a great man of God Dr. Roy Hicks said, "God loves everyone the same, but He does not fellowship with everyone the same." Getting to know the Lord Jesus and our Heavenly Father is the main reason Jesus came. Through sin man's fellowship with God was broken and man became estranged from God. Jesus provided for us a way back to the Father so we could once again have fellowship with Him and get to know Him. Coming to God's Word and learning His ways is how we get to know God for He and His Word are one. The great Smith Wigglesworth said, “I can’t understand God by feelings. I can’t understand the Lord Jesus Christ by feelings. I can only understand God the Father and Jesus Christ by what the Word says about them. God is everything the Word says He is. We need to get acquainted with Him through the Word.” Jesus taught us how to walk with Him and the Father. If we will spend time in His Word, we will get to know God.