Beings come together and associate according to disposition. Those who intense craving come together and associate with those with intense craving; those with a malicious mind come together and associate with those with a malicious mind; those with wrong views come together and associate with those with wrong views; and similar for the other seven kinds of actions.
Dasakammapathasutta - Ten Kinds Of Actions
At Sāvatthi.
"Bhikkhus, beings come together and associate according to disposition. Those who kill living beings come together and associate with those who kill living beings; those who take what is not given come together and associate with those who take what is not given; those who engage in sexual misconduct come together and associate with those who engage in sexual misconduct; those who speak falsely come together and associate with those who speak falsely; those who speak divisively come together and associate with those who speak divisively; those who speak harshly come together and associate with those who speak harshly; those who chatter frivolously come together and associate with those who chatter frivolously; those with intense craving come together and associate with those with intense craving; those with a malicious mind come together and associate with those who with a malicious mind; those with wrong views come together and associate with those with wrong views.
Those who abstain from killing living beings come together and associate with those who abstain from killing living beings; those who abstain from taking what is not given come together and associate with those who abstain from taking what is not given; those who abstain from sexual misconduct come together and associate with those who abstain from sexual misconduct; those who abstain from speaking falsely come together and associate with those who abstain from speaking falsely; those who abstain from speaking divisively come together and associate with those who abstain from speaking divisively; those who abstain from speaking harshly come together and associate with those who abstain from speaking harshly; those who abstain from chattering frivolously come together and associate with those who abstain from chattering frivolously; those who are without intense craving come together and associate with those who are without intense craving; those who are not hateful come together and associate with those who are not hateful; those with right views come together and associate with those with right views."