Beings come together and associate according to disposition. The distracted come together and associate with the distracted, and other pairs of dispositions are mentioned.
Asamāhita sutta - Distracted
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 distracted come together and associate with the distracted; 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 collected come together and associate with the collected; the wise come together and associate with the wise."