Śrīmad-Bhāgavatam · Text 6.1.27
Who is speaking and story frame
स एवं वर्तमानोऽज्ञो मृत्युकाल उपस्थिते ।
मतिं चकार तनये बाले नारायणाह्वये ॥ २७ ॥
sa evaṁ vartamāno ’jño
mṛtyu-kāla upasthite
matiṁ cakāra tanaye
bāle nārāyaṇāhvaye
When the time of death arrived for the foolish Ajāmila, he began thinking exclusively of his son Nārāyaṇa.
Read Śrīla Prabhupāda's purport on Vedabase.io