Śrīmad-Bhāgavatam · Text 3.6.34
Who is speaking and story frame
एते वर्णा: स्वधर्मेण यजन्ति स्वगुरुं हरिम् ।
श्रद्धयात्मविशुद्ध्यर्थं यज्जाता: सह वृत्तिभि: ॥ ३४ ॥
ete varṇāḥ sva-dharmeṇa
yajanti sva-guruṁ harim
śraddhayātma-viśuddhy-arthaṁ
yaj-jātāḥ saha vṛttibhiḥ
All these different social divisions are born, with their occupational duties and living conditions, from the Supreme Personality of Godhead. Thus for unconditional life and self-realization one has to worship the Supreme Lord under the direction of the spiritual master.
Read Śrīla Prabhupāda's purport on Vedabase.io