Sayyiduna Abu Musa Ash'ari, may Allah be pleased with him, narrates that the Prophet Muhammad, peace and blessings be upon him, said: "The example of a good companion and a bad companion is like that of one who carries musk and one who blows the bellows. The one who carries musk, either you will buy it from him or you will benefit from its fragrance, and the one who blows the bellows, either he will burn your clothes or you will get a bad smell from him." (Imam Ibn Hibban, may Allah have mercy on him, says:): In this narration, there is evidence that analogy (qiyas) in religious matters is permissible.
Hadith Referenceصحیح ابن حبان / كتاب البر والإحسان / 561
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الصحيحة» (3214): ق.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين، بريد هو ابن عبد الله بن أبي بردة بن أبي موسى الأشعري.