Śrīmad-Bhāgavatam · Texts 7.12.13-14
Who is speaking and story frame
उषित्वैवं गुरुकुले द्विजोऽधीत्यावबुध्य च ।
त्रयीं साङ्गोपनिषदं यावदर्थं यथाबलम् ॥ १३ ॥
दत्त्वा वरमनुज्ञातो गुरो: कामं यदीश्वर: ।
गृहं वनं वा प्रविशेत्प्रव्रजेत्तत्र वा वसेत् ॥ १४ ॥
uṣitvaivaṁ gurukule
dvijo ’dhītyāvabudhya ca
trayīṁ sāṅgopaniṣadaṁ
yāvad-arthaṁ yathā-balam
dattvā varam anujñāto
guroḥ kāmaṁ yadīśvaraḥ
gṛhaṁ vanaṁ vā praviśet
pravrajet tatra vā vaset
According to the rules and regulations mentioned above, one who is twice-born, namely a brāhmaṇa, kṣatriya or vaiśya, should reside in the gurukula under the care of the spiritual master. There he should study and learn all the Vedic literatures along with their supplements and the Upaniṣads, according to his ability and power to study. If possible, the student or disciple should reward the spiritual master with the remuneration the spiritual master requests, and then, following the master’s order, the disciple should leave and accept one of the other āśramas, namely the gṛhastha-āśrama, vānaprastha-āśrama or sannyāsa-āśrama, as he desires.
Read Śrīla Prabhupāda's purport on Vedabase.io