Dhammapada wrote:206. Good is it to see the Noble Ones; to live with them is ever blissful. One will always be happy by not encountering fools.
207. Indeed, he who moves in the company of fools grieves for longing. Association with fools is ever painful, like partnership with an enemy. But association with the wise is happy, like meeting one's own kinsmen.
Therigatha 1018-1019 wrote:One who is clever should make no friends
Amongst the malicious, the angry, the envious
Or those who delight in the misfortunes of others.
Truly, contact with the bad is evil.
One who is clever should make friends
With those with faith, the pleasant, the wise,
And those with great learning.
Truly, contact with the good is blessed.
Yet, we are also advised to be compassionate to all living beings, without exception.
The question: how do we combine the teachings of compassion and avoidance of fools? How do we avoid the foolish and yet at the same time show compassion for them? Do we have to avoid them completely; i.e. not talking with them, not greeting them, etc? I mean, is it not rude and "uncompassionate" to shun these kinds of people?