Śrīmad-Bhāgavatam · Text 4.14.18
Who is speaking and story frame
यस्य राष्ट्रे पुरे चैव भगवान् यज्ञपूरुष: ।
इज्यते स्वेन धर्मेण जनैर्वर्णाश्रमान्वितै: ॥ १८ ॥
yasya rāṣṭre pure caiva
bhagavān yajña-pūruṣaḥ
ijyate svena dharmeṇa
janair varṇāśramānvitaiḥ
The king is supposed to be pious in whose state and cities the general populace strictly observes the system of eight social orders of varṇa and āśrama, and where all citizens engage in worshiping the Supreme Personality of Godhead by their particular occupations.
Read Śrīla Prabhupāda's purport on Vedabase.io