I came to the Prophet ﷺ while his companions were with him, sitting so still it was as though birds were perched on their heads. I greeted him and sat down.Then some bedouins came and asked him, "Messenger of Allah, should we seek medical treatment?"He replied, "Yes, seek treatment, for Allah has not placed any disease without also placing a cure for it, except one disease, old age."When Usama grew old, he used to say, "Do you see any cure for me now?"They also asked him about various matters, saying, "Is there any sin upon us in such and such?"He said, "Servants of Allah, Allah has lifted the burden of sin, except for the man who wrongs another Muslim unjustly. That is sin and ruin."They asked, "What is the best thing a person has been given, Messenger of Allah?"He answered, "Good character."
حدثنا محمد بن جعفر حدثنا شعبة عن زياد بن علاقة
أتيت النبي ﷺ وأصحابه عنده كأنما على رءوسهم الطير قال فسلمت عليه وقعدت قال فجاءت الأعراب فسألوه فقالوا يا رسول الله نتداوى قال نعم تداووا فإن الله لم يضع داء إلا وضع له دواء غير داء واحد الهرم قال وكان أسامة حين كبر يقول هل ترون لي من دواء الآن قال وسألوه عن أشياء هل علينا حرج في كذا وكذا قال عباد الله وضع الله الحرج إلا امرأ اقتضى امرأ مسلما ظلما فذلك حرج وهلك قالوا ما خير ما أعطي الناس يا رسول الله قال خلق حسن
Its isnad is sahih, and it appears in Abu Dawud 4/3, no. 3855, in the chapter on medicine, "A man treating an illness," and Ibn Majah 2/1137, no. 3436, in the chapter on medicine, "Allah has not sent down any disease without sending down a cure for it."