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; and similar for the other three precepts.

Pañcasikkhāpada sutta - Five Precepts

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 consume intoxicants come together and associate with those who consume intoxicants.

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 consuming intoxicants come together and associate with those who abstain from consuming intoxicants."