We used to do ruqyah (healing) in the time of jahiliyyah. We asked, O Messenger of Allah, what do you say about it? He said: Let me know your ruqyah (healing) and said: There is no harm in the ruqyah which does not contain any shirk.
كُنَّا نَرْقِي فِي الْجَاهِلِيَّةِ فَقُلْنَا يَا رَسُولَ اللَّهِ كَيْفَ تَرَى فِي ذَلِكَ فَقَالَ اعْرِضُوا عَلَىَّ رُقَاكُمْ لاَ بَأْسَ بِالرُّقَى مَا لَمْ يَكُنْ فِيهِ شِرْكٌ