Srimad Bhagavatam Canto 06, Chapter 02, Text 07

SB 6.2.7

ayam hi krta-nirveso
 janma-koty-amhasam api
yad vyajahara vivaso
 nama svasty-ayanam hareh
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Ajamila 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 Narayana. Even though he did not chant purely, he chanted without offense, and therefore he is now pure and eligible for liberation.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
The Yamadutas had considered only the external situation of Ajamila. Since he was extremely sinful throughout his life, they thought he should be taken to Yamaraja and did not know that he had become free from the reactions of all his sins. The Visnudutas therefore instructed that because he had chanted the four syllables of the name Narayana at the time of his death, he was freed from all sinful reactions. In this regard Srila Visvanatha Cakravarti Thakura quotes the following verses from the smrti-sastra:
 
namno hi yavati saktih
 papa-nirharane hareh
tavat kartum na saknoti
 patakam pataki narah
 
“Simply by chanting one holy name of Hari, a sinful man can counteract the reactions to more sins than he is able to commit.” (Brhad-visnu Purana)
 
avasenapi yan-namni
 kirtite sarva-patakaih
puman vimucyate sadyah
 simha-trastair mrgair iva
 
“If one chants the holy name of the Lord, even in a helpless condition or without desiring to do so, all the reactions of his sinful life depart, just as when a lion roars, all the small animals flee in fear.” (Garuda Purana)
 
sakrd uccaritam yena
 harir ity aksara-dvayam
baddha-parikaras tena
 moksaya gamanam prati
 
“By once chanting the holy name of the Lord, which consists of the two syllables ha-ri, one guarantees his path to liberation.” (Skanda Purana)
 
These are some of the reasons why the Visnudutas objected to the Yamadutas’ taking Ajamila to the court of Yamaraja.
Srimad Bhagavatam Canto 06, Chapter 02, Text 05-06
Srimad Bhagavatam Canto 06, Chapter 02, Text 08