Śrīmad-Bhāgavatam · Text 6.2.7
Who is speaking and story frame
अयं हि कृतनिर्वेशो जन्मकोट्यंहसामपि ।
यद्व्याजहार विवशो नाम स्वस्त्ययनं हरे: ॥ ७ ॥
ayaṁ hi kṛta-nirveśo
janma-koṭy-aṁhasām api
yad vyājahāra vivaśo
nāma svasty-ayanaṁ hareḥ
Ajāmila has already atoned for all his sinful actions. Indeed, he has atoned not only for sins performed in one life but for those performed in millions of lives, for in a helpless condition he chanted the holy name of Nārāyaṇa. Even though he did not chant purely, he chanted without offense, and therefore he is now pure and eligible for liberation.
Read Śrīla Prabhupāda's purport on Vedabase.io