I heard the Messenger of Allah ﷺ say, "Incantations, amulets, and love charms are all forms of shirk."She said, I asked, "Why do you say this? By Allah, my eye used to discharge, and I would go to a certain Jewish man who would recite an incantation over it, and whenever he did, it would settle down."Abdullah replied, "That was nothing but the work of Shaytan. He was poking it with his hand, and when the Jew recited over it, he would stop. It would have been enough for you to say what the Messenger of Allah ﷺ used to say, 'Remove the harm, Lord of mankind, and grant healing, for You are the Healer. There is no healing except Your healing, a healing that leaves no illness behind.'"
حدثنا محمد بن العلاء حدثنا أبو معاوية حدثنا الأعمش عن عمرو بن مرة عن يحيى بن الجزار عن ابن أخي زينب امرأة عبد الله عن زينب امرأة عبد الله
سمعت رسول الله ﷺ يقول إن الرقى والتمائم والتولة شرك قالت قلت لم تقول هذا والله لقد كانت عيني تقذف وكنت أختلف إلى فلان اليهودي يرقيني فإذا رقاني سكنت فقال عبد الله إنما ذاك عمل الشيطان كان ينخسها بيده فإذا رقاها كف عنها إنما كان يكفيك أن تقولي كما كان رسول الله ﷺ يقول أذهب البأس رب الناس اشف أنت الشافي لا شفاء إلا شفاؤك شفاء لا يغادر سقما
[Its chain of transmission is daif] Ibn Majah recorded it in the Book of Medicine, chapter on hanging amulets, hadith 3530, from the hadith of Amash with this wording, and he is a mudallis who narrated using "an" (indicating possible concealment in the chain). The hadith has daif corroborating narrations in Ibn Hibban, hadith 1412, and Hakim, 4/417, 418.