Śrīmad-Bhāgavatam · Text 9.5.25
Who is speaking and story frame
एवं विधानेकगुण: स राजा
परात्मनि ब्रह्मणि वासुदेवे ।
क्रियाकलापै: समुवाह भक्तिं
ययाविरिञ्च्यान् निरयांश्चकार ॥ २५ ॥
evaṁ vidhāneka-guṇaḥ sa rājā
parātmani brahmaṇi vāsudeve
kriyā-kalāpaiḥ samuvāha bhaktiṁ
yayāviriñcyān nirayāṁś cakāra
In this way, because of devotional service, Mahārāja Ambarīṣa, who was endowed with varieties of transcendental qualities, was completely aware of Brahman, Paramātmā and the Supreme Personality of Godhead, and thus he executed devotional service perfectly. Because of his devotion, he thought even the topmost planet of this material world no better than the hellish planets.
Read Śrīla Prabhupāda's purport on Vedabase.io