I came to the Prophet ﷺ and found his companions sitting so still it was as if birds were perched on their heads. I greeted them and sat down. Then bedouins came from here and there and asked, "Messenger of Allah, may we seek treatment?"He replied, "Treat yourselves, for Allah has not sent down a disease without sending down a cure for it, except for one disease, old age."
حدثنا حفص بن عمر النمري حدثنا شعبة عن زياد بن علاقة
أتيت النبي ﷺ وأصحابه كأنما على رءوسهم الطير فسلمت ثم قعدت فجاء الأعراب من ها هنا وها هنا فقالوا يا رسول الله أنتداوى فقال تداووا فإن الله عز وجل لم يضع داء إلا وضع له دواء غير داء واحد الهرم
[Its isnad is sahih] Ahmad narrated it: 4/278, and Nasai in Al-Kubra, no. 7553, from the hadith of Shubah through this route. Ibn Majah also narrated it, no. 3436, as did Tirmidhi, no. 2038, who said, hasan sahih. Hakim graded it sahih: 4/399, and Dhahabi agreed with him.