Srimad Bhagavatham 3:25:20
प्रसङ्गम् अजरं पाशम् आत्मनः कवयो विदुः
स एव साधुषु कृतो मोक्ष-द्वारम् अपावृतम्
The wise consider attachment as an unyielding fetter for the soul. The same, however, serves as an open door to liberation, when it is directed towards saints.
Source: Srimad Bhagavatham : Its Message for the Modern Man by Swami Shantananda Puri Maharaj
In order to rid the mind of its attachment to worldly objects as "mine'', one must resort to the company of holy persons, Sadhus, which is the direct doorway to liberation. Thus attachment to Satsanga leads finally to detachment.
Satsanga, the company of and service to holy persons is the direct gateway to liberation. Thus attachment to Satsanga leads finally to detachment.
Please check these: Excerpts from a discourse by our Sri Sri Muralidhara Swamiji