We used to recite incantations during the era of ignorance, so we asked, "Messenger of Allah, what is your view on that?"He replied, "Present your incantations to me. There is no harm in incantations as long as they contain no association of partners with Allah."
حدثني أبو الطاهر أخبرنا ابن وهب أخبرني معاوية بن صالح عن عبد الرحمن بن جبير عن أبيه
كنا نرقي في الجاهلية فقلنا يا رسول الله كيف ترى في ذلك فقال اعرضوا علي رقاكم لا بأس بالرقى ما لم يكن فيه شرك