Bhagavad Gita 7.16

चतुर्विधा भजन्ते मां जना: सुकृतिनोऽर्जुन |
आर्तो जिज्ञासुर्थार्थी ज्ञानी च भरतर्षभ

Translation

O best amongst the Bharatas, four kinds of pious people engage in My devotion—the distressed, the seekers of knowledge, the seekers of worldly possessions, and those who are situated in knowledge.