Al-Kāfi

Hadith 2158
bad-company
2ـ وَفِي رِوَايَةِ عَبْدِ الأعْلَى عَنْ أَبِي عَبْدِ الله (عَلَيهِ السَّلام) قَالَ قَالَ أَمِيرُ الْمُؤْمِنِينَ (عَلَيهِ السَّلام) لا يَنْبَغِي لِلْمَرْءِ الْمُسْلِمِ أَنْ يُوَاخِيَ الْفَاجِرَ فَإِنَّهُ يُزَيِّنُ لَهُ فِعْلَهُ وَيُحِبُّ أَنْ يَكُونَ مِثْلَهُ وَلا يُعِينُهُ عَلَى أَمْرِ دُنْيَاهُ وَلا أَمْرِ مَعَادِهِ وَمَدْخَلُهُ إِلَيْهِ وَمَخْرَجُهُ مِنْ عِنْدِهِ شَيْنٌ عَلَيْهِ.
2. In the Hadith of ‘Abd al-‘Ala’ from Abu ‘Abdillah (a.s.) it is said that Amir al-Mu’minin, Ali ibn abu Talib (a.s.) said: “It is not proper for a Muslim man to become a friend of an indecent person; he tries to make his deeds seem attractive to him and loves that one to behave like him (indecent). He does not assist him in his religious matters or the matters of the hereafter. The coming and going of an indecent person is a disgrace to one.”
Source: Shaykh Muḥammad b. Yaʿqūb al-Kulaynī