Beings come together and associate according to disposition. The morally reckless come together and associate with the morally reckless; and other pairs of dispositions are mentioned.
Anottappamūlaka sutta - Beginning With Morally Reckless
At Sāvatthi.
"Bhikkhus, beings come together and associate according to disposition. The morally reckless come together and associate with the morally reckless; those with little learning come together and associate with those with little learning; the undiscerning come together and associate with the undiscerning; the conscientious come together and associate with the conscientious; the very learned come together and associate with those with much learning; the wise come together and associate with the wise.
The morally reckless come together and associate with the morally reckless; the indolent come together and associate with the indolent; the undiscerning come together and associate with the undiscerning; the conscientious come together and associate with the conscientious; those with energy aroused come together and associate with those with energy aroused; the wise come together and associate with the wise.
The morally reckless come together and associate with the morally reckless; the unmindful come together and associate with the unmindful; the undiscerning come together and associate with the undiscerning; the conscientious come together and associate with the conscientious; those attending mindfully come together and associate with those attending mindfully; the wise come together and associate with the wise."