the Messenger of Allah (swt) (peace be upon him and his family) said:
"The magician among the Muslims is to be executed, but the magician among the disbelievers is not to be executed."
It was asked: "O Messenger of Allah (swt), why is the magician among the disbelievers not executed?"
He (sw) replied: "Because polytheism is greater than magic, and indeed, magic and polytheism are closely linked."