Abandoning the dark way, let the wise man cultivate the bright path. Having gone from home to homelessness, let him yearn for that delight in detachment, so difficult to enjoy. Giving up sensual pleasures, with no attachment, let the wise man cleanse himself of defilements of the mind.
Those whose minds have reached full excellence in the factors of enlightenment, who, having renounced acquisitiveness, rejoice in not clinging to things — rid of cankers, glowing with wisdom, they have attained Nibbana in this very life. ~The Dhammapada
Compassion without attachment is possible. Therefore, we need to clarify the distinctions between compassion and attachment. True compassion is not just an emotional response but a firm commitment founded on reason. Because of this firm foundation, a truly compassionate attitude toward others does not change even if they behave negatively. Genuine compassion is based not on our own projections and expectations, but rather on the needs of the other: irrespective of whether another person is a close friend or an enemy, as long as that person wishes for peace and happiness and wishes to overcome suffering, then on that basis we develop genuine concern for their problem. This is genuine compassion. For a Buddhist practitioner, the goal is to develop this genuine compassion, this genuine wish for the well-being of another, in fact for every living being throughout the universe. — Tenzin Gyatso, the Fourteenth Dalai Lama
As gold purified in a furnace loses its impurities and achieves its own true nature, the mind gets rid of the impurities of the attributes of delusion, attachment and purity through meditation and attains Reality. ~Adi Shankara