Seeking counsel or instruction from spirits or from the deceased is a wicked practice and demands God's righteous judgment.
God is particularly interested in what is going on within the heart of man. Specifically, He seeks for, and desires to find, TRUTH.
God knows everything, but this does not eliminate man’s responsibility to confess his sins. Failure to do so forfeits God’s practical forgiveness.
Most people view sin as a private or earthy matter. Yet, every sin is against the Lord. In truth, men can sin against the Father, the Son, and the Spirit.