He said to the Messenger of Allah ﷺ, "Messenger of Allah, what do you think about remedies we use for treatment, incantations we recite for healing, and protective measures we take? Do any of these turn back anything from Allah's decree?"The Messenger of Allah ﷺ replied, "They themselves are part of Allah's decree."
أنه قال لرسول الله ﷺ: يا رسول الله، أرأيت دواء نتداوي به ورقي نشترقيها، وتقي نتقيها هل ترد ذلك من قدر الله من شيء؟ فقال رسول الله ﷺ: إنه من قدر الله.
Abdullah bin Wahb reported it in Jami (699), saying, Yunus bin Yazid, Amr bin Harith, and Ibn Saman told me that Ibn Shihab told them that Abu Khuzama [narrated it], then he related it. Imam Ahmad (15474) and Hakim (4/199) also transmitted it through Ibn Wahb, except that Ahmad related it from him, from Amr bin Harith alone.This is a hasan isnad, because no one narrated from Abu Khuzama except Zuhri, and he is a well known follower who was recognized by Zuhri. Those who counted him among the companions, such as Hafiz in Taqrib, were mistaken when he said, "A companion, he has a hadith about incantations," for the companionship belongs to his father, not to him.Sufyan Thawri disagreed with all of them, narrating from Zuhri, from Ibn Abu Khuzama, from his father, which is an error. Imam Ahmad clarified this. Abdullah bin Ahmad said, I heard my father say, I heard Sufyan narrate the hadith of Abu Khuzama, and he said, from Ibn Abu Khuzama, from his father. My father said, Yahya bin Abu Bukayr and Husayn bin Muhammad narrated to us, from Sufyan, from Zuhri, from Abu Khuzama, from his father. My father said, the hadith is only narrated from Abu Khuzama, from his father. Yunus and Zubaydi narrated it this way, and this is the soundest version.Bayhaqi transmitted this in Qadar and Qada (2/454), see also Musnad (15475).I say, this route through Thawri was also transmitted by Tirmidhi (2148) and Ibn Majah (3437). Tirmidhi then transmitted it through another route (2065), from Sufyan, from Zuhri, from Abu Khuzama, from his father, relating the same account, and he said, "hasan," and this is the correct version.Tirmidhi pointed to this discrepancy, saying, "Both versions have been reported from Ibn Uyayna. Some said, from Abu Khuzama, from his father, and others said, from Ibn Abu Khuzama, from his father." He then said, "Others besides Ibn Uyayna have narrated this hadith from Zuhri, from Abu Khuzama, from his father, and this is more sound. We do not know of any other hadith from Abu Khuzama besides this one." End of quote.I say, it is as he said, for Yunus bin Yazid, Amr bin Harith, and Ibn Saman all narrated from Ibn Shihab, from Abu Khuzama, from his father, just as Ibn Wahb narrated it. This is a hasan isnad, and it is not to be faulted by the hadith of Ibn Uyayna, even though there is disagreement about his version as well, for whoever narrated from him, from Ibn Shihab, from Abu Khuzama, from his father, got it right, since this matches what the group agreed upon. Zuhri has other routes as well, but what I have mentioned is the soundest of them.