Witchcraft is one of the human efforts to find healing and solve problems.
In the sirah there is also a note that records the friend using a method similar to witchcraft which is required by the syarak for medical use.
However, this necessity can become illegal when the practices performed during witchcraft are contrary to Sharia.
The practice of shamanism that is inherited from generation to generation, especially in Malaysia, is heavily influenced by elements from other religions and some of those practices can cause a Muslim's belief to deviate if practiced.
For example, amulets that are used as intermediaries during witchcraft and spells use words that are not understood and prepare animals for sacrifice other than for Allah SWT.