Bhagavad Gita 7.16
चतुर्विधा भजन्ते मां जनाः सुकृतिनोऽर्जुन। आर्तो जिज्ञासुरर्थार्थी ज्ञानी च भरतर्षभ।।7.16।।
caturvidhā bhajante māṃ janāḥ sukṛtino'rjuna| ārto jijñāsurarthārthī jñānī ca bharatarṣabha||7.16||
caturvidha bhajante mam janah sukritino'rjuna arto jijnasurartharthi jnani ca bharatarshabha7.16
Meaning
Four types of virtuous people worship Krishna: the distressed, the seeker of knowledge, the seeker of wealth, and the wise. All are noble, but their motivations differ.
हे भरत श्रेष्ठ अर्जुन! उत्तम कर्म करने वाले आर्त, जिज्ञासु, अर्थार्थी और ज्ञानी ऐसे चार प्रकार के लोग मुझे भजते हैं।
This is verse 16 of 30 in Chapter 7 (Jnana Vijnana Yoga) of the Bhagavad Gita.