"My people are destroyed for lack of knowledge. Because you have rejected knowledge, I also will reject you from being priest for Me; because you have forgotten the law of your God, I also will forget your children" (Hosea 4:6).
Israel had rejected the knowledge of God by forgetting the law of God. They considered God's law to be "a strange thing" as they rushed to the altars of idols (Hosea 8:12). Please notice the effect of their rejection of knowing the law of God: God rejected them. They were headed for destruction.
We, like them, have free will, with the ability to choose whether or not to know God and follow His will. But, we must realize that God will bring us into judgment when we reject knowing His truth. On the other hand, we obtain freedom from our sins by knowing the truth of Christ and abiding in His word (John 8:31-32).
Do not deceive yourself. You cannot be saved in heaven by rejecting God's law here on earth. We will reap what we sow (Gal. 6:7). Implant the perfect law of liberty into your heart, be a doer of the word and be blessed (James 1:21-25).