"There is no harm in the invocation as long as there is no polytheism in it."
What the hadith says
Healing through incantation — ruqya — is explicitly permitted in Islamic practice provided the recitations invoke Allah and not other deities. Muhammad endorsed specific ruqya practices and the tradition preserves numerous approved formulas for various ailments. The line between permitted and forbidden magical healing runs not through the mechanism (verbal formula directed at supernatural agent for physical healing) but through the identity of the agent invoked: Allah is permitted, other powers are shirk and forbidden.
Why this is a problem
Classical Islamic jurisprudence's own internal debate on magic's validity identifies the structural problem: the elements of ruqya — specific verbal formulas, repeated a set number of times, directed at a supernatural agent for physical healing outcomes — are functionally identical to what the same tradition condemns as forbidden magic in pre-Islamic and non-Islamic contexts. The distinction drawn is purely theological: the formula is acceptable if addressed to Allah, unacceptable if addressed to jinn, spirits, or other supernatural entities. The mechanism is identical; only the invocation changes. Islam did not reform or eliminate magical healing practice — it retained the structure while restricting the approved recipient of the supplication. The pre-Islamic Arabian world had ruqya practitioners; Islam kept the practice and changed the invocation name.
The Muslim response
Muslim scholars argue that the distinction between Islamic ruqya and forbidden magic (sihr) is not arbitrary branding but a fundamental difference in mechanism. Islamic ruqya works through direct divine mercy — Allah responds to sincere supplication and Quranic recitation because those are the channels He established for human communication with Him. Forbidden magic works by manipulating jinn, spirits, or hidden forces through compulsion — a fundamentally different mechanism that operates without divine sanction. The proof of the difference is in the outcomes and the sources: ruqya is rooted in Quranic verses whose authority is divine; sihr is rooted in knowledge acquired from demons (Q2:102). The distinction is not about appearances but about the ultimate source of the power invoked.
Why it fails
The distinction holds only from inside Islamic theology — specifically, only if one already accepts that Allah exists and responds to specific formulas recited specific numbers of times while other supernatural agents addressed by identical structural practice do not. From outside that prior commitment, the operational structure is identical: someone recites the Fatiha seven times over a scorpion sting; someone else recites a pre-Islamic healing formula seven times over the same sting. The mechanism proposed (divine mercy responding to supplication) is not observable and cannot be distinguished by any external criterion from the forbidden mechanism (jinn manipulation) in practice. The criterion 'not shirk' is a theological sorting rule about which supernatural agent is being addressed, not a mechanistic distinction about how healing works. A tradition that condemns all non-Islamic verbal-formula healing while preserving an extensive catalogue of Islamic verbal-formula healing has not distinguished prayer from magic on any observable basis — it has distinguished Islamic from non-Islamic, which is a statement about allegiance, not mechanism.