Śrīmad-Bhāgavatam · Text 10.10.17
Who is speaking and story frame
दरिद्रस्यैव युज्यन्ते साधव: समदर्शिन: ।
सद्भि: क्षिणोति तं तर्षं तत आराद्विशुद्ध्यति ॥ १७ ॥
daridrasyaiva yujyante
sādhavaḥ sama-darśinaḥ
sadbhiḥ kṣiṇoti taṁ tarṣaṁ
tata ārād viśuddhyati
Saintly persons may freely associate with those who are poverty-stricken, but not with those who are rich. A poverty-stricken man, by association with saintly persons, very soon becomes uninterested in material desires, and the dirty things within the core of his heart are cleansed away.
Read Śrīla Prabhupāda's purport on Vedabase.io