The Messenger of Allah ﷺ said, "Whoever ties a knot and then blows upon it has practiced magic, and whoever practices magic has committed shirk, and whoever attaches himself to something is entrusted to it."
أخبرنا عمرو بن علي قال حدثنا أبو داود قال حدثنا عباد بن ميسرة المنقري عن الحسن
قال رسول الله ﷺ من عقد عقدة ثم نفث فيها فقد سحر ومن سحر فقد أشرك ومن تعلق شيئا وكل إليه
No references are available.
[Its chain of transmission is daif] Ibn Adi reported it in al-Kamil fi al-Duafa 4/1648, from the hadith of Dawud Tayalisi, through him, and it is in al-Kubra, hadith no. 3542.