Śrīmad-Bhāgavatam · Text 9.4.21
Who is speaking and story frame
एवं सदा कर्मकलापमात्मन:
परेऽधियज्ञे भगवत्यधोक्षजे ।
सर्वात्मभावं विदधन्महीमिमां
तन्निष्ठविप्राभिहित: शशास ह ॥ २१ ॥
evaṁ sadā karma-kalāpam ātmanaḥ
pare ’dhiyajñe bhagavaty adhokṣaje
sarvātma-bhāvaṁ vidadhan mahīm imāṁ
tan-niṣṭha-viprābhihitaḥ śaśāsa ha
In performing his prescribed duties as king, Mahārāja Ambarīṣa always offered the results of his royal activities to the Supreme Personality of Godhead, Kṛṣṇa, who is the enjoyer of everything and is beyond the perception of material senses. He certainly took advice from brāhmaṇas who were faithful devotees of the Lord, and thus he ruled the planet earth without difficulty.
Read Śrīla Prabhupāda's purport on Vedabase.io