The Messenger of Allah ﷺ said, "When Allah created the disease, He created the cure, so seek treatment."
قال رسول الله ﷺ: إن الله حيث خلق الداء خلق الدواء، فتداووا.
Narrated by Ahmad (12596), Ibn Abu Shayba (23881), and Abu Naeem in Tibb Nabawi (49), all of them from the hadith of Yunus bin Muhammad (he is the teacher), from Harb bin Maymun, who said, I heard Imran al-Ammi say, I heard Anas say, and he mentioned it.Its isnad is hasan because of Imran al-Ammi, who is Ibn Qudama al-Basri, there is no harm in him, though he has few narrations. He has a biography in Jarh wa Tadil (6/303), but was not given a biography in Tajil, even though he meets its criteria. Also in the chain is Harb bin Maymun, the elder, whose hadith is hasan.This hadith explains his saying ﷺ, "Allah has not sent down a disease without sending down for it a cure," meaning Allah has not created a disease without creating for it a remedy.