Beings come together and associate according to disposition. Those who speak divisively come together and associate with those who speak divisively; and six other kinds of actions are mentioned.

Sattakammapatha sutta - Seven 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 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."