Abu Musa reported: The Prophet, peace and blessings be upon him, said, “Verily, the parable of good and bad company is that of a seller of musk and a blacksmith. The seller of musk will give you perfume, you will buy some, or you will notice a pleasant smell. As for the blacksmith, he will burn your clothes, or you will notice a bad smell.”
Source: Ṣaḥīḥ al-Bukhārī 5534, Ṣaḥīḥ Muslim 2628
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
عَنْ أَبِي مُوسَى عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ إِنَّمَا مَثَلُ الْجَلِيسِ الصَّالِحِ وَالْجَلِيسِ السَّوْءِ كَحَامِلِ الْمِسْكِ وَنَافِخِ الْكِيرِ فَحَامِلُ الْمِسْكِ إِمَّا أَنْ يُحْذِيَكَ وَإِمَّا أَنْ تَبْتَاعَ مِنْهُ وَإِمَّا أَنْ تَجِدَ مِنْهُ رِيحًا طَيِّبَةً وَنَافِخُ الْكِيرِ إِمَّا أَنْ يُحْرِقَ ثِيَابَكَ وَإِمَّا أَنْ تَجِدَ رِيحًا خَبِيثَةً
5534 صحيح البخاري كتاب الذبائح والصيد باب المسك
2628 صحيح مسلم كتاب البر والصلة والآداب باب استحباب مجالسة الصالحين ومجانبة قرناء السوء