When you enter the land the Lord your God is giving you, do not learn to imitate the detestable ways of the nations there. (Deuteronomy 18:9)
There were certain things that God forbade the Israelites from doing once they reached the land that the Lord had promised them. They were not to follow the abominable practices of those nations. They were not to use divination, observe times, consult enchanters or witches or wizards or necromancers. He told them that all that do these things were an abomination to him. Their relationship with God was to be perfect.
Considering the great deliverance that God had given them from the cruel bondage of Pharoah, God's requirements were not harsh. It was for their own good.
God desires that each one of us as believers stay true to him and his Word. Perfecting our relationship with God is not an easy task. But we can learn each day from his Word, the Bible and from the Counsellor, the Holy Spirit.
Not that I have already obtained all this, or have already been made perfect, but I press on to take hold of that for which Christ Jesus took hold of me. (Philippians 3:12)