SB 3.25.20

prasaṅgam ajaraṁ pāśam
 ātmanaḥ kavayo viduḥ
sa eva sādhuṣu kṛto
 mokṣa-dvāram apāvṛtam
Synonyms: 
prasaṅgam — attachment; ajaram — strong; pāśam — entanglement; ātmanaḥ — of the soul; kavayaḥ — learned men; viduḥ — know; saḥ eva — that same; sādhuṣu — to the devotees; kṛtaḥ — applied; mokṣa-dvāram — the door of liberation; apāvṛtam — opened.
Translation: 
Every learned man knows very well that attachment for the material is the greatest entanglement of the spirit soul. But that same attachment, when applied to the self-realized devotees, opens the door of liberation.
Purport: 

Here it is clearly stated that attachment for one thing is the cause of bondage in conditioned life, and the same attachment, when applied to something else, opens the door of liberation. Attachment cannot be killed; it has simply to be transferred. Attachment for material things is called material consciousness, and attachment for Kṛṣṇa or His devotee is called Kṛṣṇa consciousness. Consciousness is therefore the platform of attachment. It is clearly stated here that when we simply purify the consciousness from material consciousness to Kṛṣṇa consciousness, we attain liberation. Despite the statement that one should give up attachment, desirelessness is not possible for a living entity. A living entity, by constitution, has the propensity to be attached to something. We see that if someone has no object of attachment, if he has no children, then he transfers his attachment to cats and dogs. This indicates that the propensity for attachment cannot be stopped; it must be utilized for the best purpose. Our attachment for material things perpetuates our conditional state, but the same attachment, when transferred to the Supreme Personality of Godhead or His devotee, is the source of liberation.

Here it is recommended that attachment should be transferred to the self-realized devotees, the sādhus. And who is a sādhu? A sādhu is not just an ordinary man with a saffron robe or long beard. A sādhu is described in Bhagavad-gītā as one who unflinchingly engages in devotional service. Even though one is found not to be following the strict rules and regulations of devotional service, if one simply has unflinching faith in Kṛṣṇa, the Supreme Person, he is understood to be a sādhu. Sādhur eva sa mantavyaḥ. A sādhu is a strict follower of devotional service. It is recommended here that if one at all wants to realize Brahman, or spiritual perfection, his attachment should be transferred to the sādhu, or devotee. Lord Caitanya also confirmed this. Lava-mātra sādhu-saṅge sarva-siddhi haya: simply by a moment’s association with a sādhu, one can attain perfection.

Mahātmā is a synonym of sādhu. It is said that service to a mahātmā, or elevated devotee of the Lord, is dvāram āhur vimukteḥ, the royal road of liberation. Mahat-sevāṁ dvāram āhur vimuktes tamo-dvāraṁ yoṣitāṁ saṅgi-saṅgam (Bhāg. 5.5.2). Rendering service to the materialists has the opposite effect. If anyone offers service to a gross materialist, or a person engaged only in sense enjoyment, then by association with such a person the door to hell is opened. The same principle is confirmed here. Attachment to a devotee is attachment to the service of the Lord because if one associates with a sādhu, the result will be that the sādhu will teach him how to become a devotee, a worshiper and a sincere servitor of the Lord. These are the gifts of a sādhu. If we want to associate with a sādhu, we cannot expect him to give us instructions on how to improve our material condition, but he will give us instructions on how to cut the knot of the contamination of material attraction and how to elevate ourselves in devotional service. That is the result of associating with a sādhu. Kapila Muni first of all instructs that the path of liberation begins with such association.