bhavapavargo bhramato yada bhavej
janasya tarhy acyuta sat-samagamah
sat-sangamo yarhi tadaiva sad-gatau
paravarese tvayi jayate ratih
bhava-apavargah—liberation from the nescience of material existence; bhramatah—wandering; yada—when; bhavet—should be; janasya—of a person; tarhi—at that time; acyuta—O Supreme Personality of Godhead; sat-samagamah—association with devotees; sat-sangamah—association with the devotees; yarhi—when; tada—at that time; eva—only; sat-gatau—the highest goal of life; paravarese—the Lord of the universe; tvayi—to You; jayate—appears; ratih—attraction.
" 'O my Lord! O infallible Supreme Person! When a person wandering throughout the universes becomes eligible for liberation from material existence, he gets an opportunity to associate with devotees. When he associates with devotees, his attraction for You is awakened. You are the Supreme Personality of Godhead, the highest goal of the supreme devotees and the Lord of the universe.'
This is a quotation from Srimad-Bhagavatam (10.51.53).
Link to this page: https://prabhupadabooks.com/cc/madhya/22/84