Śrīmad-Bhāgavatam · Text 4.20.13
Who is speaking and story frame
सम: समानोत्तममध्यमाधम:
सुखे च दु:खे च जितेन्द्रियाशय: ।
मयोपक्लृप्ताखिललोकसंयुतो
विधत्स्व वीराखिललोकरक्षणम् ॥ १३ ॥
samaḥ samānottama-madhyamādhamaḥ
sukhe ca duḥkhe ca jitendriyāśayaḥ
mayopakḷptākhila-loka-saṁyuto
vidhatsva vīrākhila-loka-rakṣaṇam
My dear heroic King, please keep yourself always equipoised and treat people equally, whether they are greater than you, in the intermediate stage or lower than you. Do not be disturbed by temporary distress or happiness. Fully control your mind and senses. In this transcendental position, try to execute your duty as king in whatever condition of life you may be posted by My arrangement, for your only duty here is to give protection to the citizens of your kingdom.
Read Śrīla Prabhupāda's purport on Vedabase.io