The Prophet (peace and blessings be upon him) said:
"You may perform ruqyah (for treatment), as long as it contains no associating of partners with Allah (shirk)."
Hadith Referenceصحیح الجامع الصغیر / حرف الألف / 906
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[ك] عن الشفاء٢ بنت عبد الله. الصحيحة ١٧٨: حب.