Śrīmad-Bhāgavatam · Text 3.12.41
Who is speaking and story frame
विद्या दानं तप: सत्यं धर्मस्येति पदानि च ।
आश्रमांश्च यथासंख्यमसृजत्सह वृत्तिभि: ॥ ४१ ॥
vidyā dānaṁ tapaḥ satyaṁ
dharmasyeti padāni ca
āśramāṁś ca yathā-saṅkhyam
asṛjat saha vṛttibhiḥ
Education, charity, penance and truth are said to be the four legs of religion, and to learn this there are four orders of life with different classifications of castes according to vocation. Brahmā created all these in systematic order.
Read Śrīla Prabhupāda's purport on Vedabase.io