Śrīmad-Bhāgavatam · Text 6.2.13
Who is speaking and story frame
अथैनं मापनयत कृताशेषाघनिष्कृतम् ।
यदसौ भगवन्नाम म्रियमाण: समग्रहीत् ॥ १३ ॥
athainaṁ māpanayata
kṛtāśeṣāgha-niṣkṛtam
yad asau bhagavan-nāma
mriyamāṇaḥ samagrahīt
At the time of death, this Ajāmila helplessly and very loudly chanted the holy name of the Lord, Nārāyaṇa. That chanting alone has already freed him from the reactions of all sinful life. Therefore, O servants of Yamarāja, do not try to take him to your master for punishment in hellish conditions.
Read Śrīla Prabhupāda's purport on Vedabase.io