Beings come together and associate according to disposition. The unprincipled come together and associate with the unprincipled, the virtuous come together and associate with the virtuous, and other pairs of dispositions are mentioned.

Dussīla sutta - Unprincipled

At Sāvatthi.

"Bhikkhus, beings come together and associate according to disposition. The faithless come together and associate with the faithless; the unashamed come together and associate with the unashamed; the morally reckless come together and associate with the morally reckless; the unprincipled come together and associate with the unprincipled; the undiscerning come together and associate with the undiscerning.

The faithful come together and associate with the faithful; the conscientious come together and associate with the conscientious; the virtuous come together and associate with the virtuous; the wise come together and associate with the wise."