It is narrated from Imam Hussain (AS) who said: Having association and companionship with ignoble and morally corrupt individuals can cause badness and mischief.
And socializing and friendship with the corrupt individuals and those who commit sins lead to accusations and pessimism by people as well as losing one’s dignity [1].
[1] Beharul Anwaar, Vol. 75, Page 122.
Source: en.shafaqna.com