Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:37:15

And say, "This is not but obvious magic.  

And they say, regarding it: ‘This is nothing but manifest sorcery — and they say in denial of the Resurrection —
القرآن:٣٧:١٥

وَقَالُوا إِنْ هَٰذَا إِلَّا سِحْرٌ مُبِينٌ  

{وقالوا} فيها {إن} ما {هذا إلا سحر مبين} بيّن وقالوا منكرين للبعث.

See similar narrations below:

Collected by Qurʾān
quran:74:24

And said, "This is not but magic imitated ˹from others˺.  

and said, of what he ˹the Prophet˺ had brought: ‘This is nothing but handed-down sorcery, learnt from sorcerers;
القرآن:٧٤:٢٤

فَقَالَإِنْ هَٰذَا إِلَّا سِحْرٌ يُؤْثَرُ  

{فقال} فيما جاء به {إن} ما {هذا إلا سحر يؤثر} ينقل عن السحرة.