Śrīmad-Bhāgavatam · Text 2.1.13
Who is speaking and story frame
खट्वाङ्गो नाम राजर्षिर्ज्ञात्वेयत्तामिहायुष: ।
मुहूर्तात्सर्वमुत्सृज्य गतवानभयं हरिम् ॥ १३ ॥
khaṭvāṅgo nāma rājarṣir
jñātveyattām ihāyuṣaḥ
muhūrtāt sarvam utsṛjya
gatavān abhayaṁ harim
The saintly King Khaṭvāṅga, after being informed that the duration of his life would be only a moment more, at once freed himself from all material activities and took shelter of the supreme safety, the Personality of Godhead.
Read Śrīla Prabhupāda's purport on Vedabase.io