كتاب السلام
39  
The Book of Greetings
(22)
Chapter: There Is Nothing Wrong With Ruqyah That Does Not Involve Shirk
(22)
باب لاَ بَأْسَ بِالرُّقَى مَا لَمْ يَكُنْ فِيهِ شِرْكٌ ‏‏
Sahih Muslim 2200

'Auf b. Malik Ashja'i reported We practised incantation in the pre-Islamic days and we said:

Allah's Messenger, what is your opinion about it? He said: Let me know your invocation and said: There is no harm in the invocation as long as there is no polytheism in it.
حَدَّثَنِي أَبُو الطَّاهِرِ، أَخْبَرَنَا ابْنُ وَهْبٍ، أَخْبَرَنِي مُعَاوِيَةُ بْنُ صَالِحٍ، عَنْ عَبْدِ الرَّحْمَنِ، بْنِ جُبَيْرٍ عَنْ أَبِيهِ، عَنْ عَوْفِ بْنِ مَالِكٍ الأَشْجَعِيِّ، قَالَ كُنَّا نَرْقِي فِي الْجَاهِلِيَّةِ فَقُلْنَا يَا رَسُولَ اللَّهِ كَيْفَ تَرَى فِي ذَلِكَ فَقَالَ ‏ "‏ اعْرِضُوا عَلَىَّ رُقَاكُمْ لاَ بَأْسَ بِالرُّقَى مَا لَمْ يَكُنْ فِيهِ شِرْكٌ ‏"‏ ‏.‏
Reference : Sahih Muslim 2200
In-book reference : Book 39, Hadith 86
USC-MSA web (English) reference : Book 26, Hadith 5457
  (deprecated numbering scheme)