Śrīmad-Bhāgavatam · Texts 10.5.15-16
नन्दो महामनास्तेभ्यो वासोऽलङ्कारगोधनम् ।
सूतमागधवन्दिभ्यो येऽन्ये विद्योपजीविन: ॥ १५ ॥
तैस्तै: कामैरदीनात्मा यथोचितमपूजयत् ।
विष्णोराराधनार्थाय स्वपुत्रस्योदयाय च ॥ १६ ॥
nando mahā-manās tebhyo
vāso ’laṅkāra-go-dhanam
sūta-māgadha-vandibhyo
ye ’nye vidyopajīvinaḥ
tais taiḥ kāmair adīnātmā
yathocitam apūjayat
viṣṇor ārādhanārthāya
sva-putrasyodayāya ca
The great-minded Mahārāja Nanda gave clothing, ornaments and cows in charity to the cowherd men in order to please Lord Viṣṇu, and thus he improved the condition of his own son in all respects. He distributed charity to the sūtas, the māgadhas, the vandīs, and men of all other professions, according to their educational qualifications, and satisfied everyone’s desires.
Read Śrīla Prabhupāda's purport on Vedabase.io