Ajamil was doing many types of sins while leading life. One day, he went to a forest. He saw one low caste person was playing sexual actions with a prostitute and body forms of the woman. He was enticed with the seductive form of pros and his mind got corrupted.
Ajamil fascinated by the pros, brought her house and started vicious conduct. Once, some saints who were roaming around visited his house. The pros offered them food. When asked by pros, Ajamil saluted them. Saints asked Ajamil that they had taken food in his house and hence, donation also should be given. Ajamil said that he did not give any donation to saints and they could demand anything else. Then saints said to him that in case son was born to them, put his name as Narayana. Ajamil asked them, what benefit they would get, if he named his as Narayana.
They told him that name of their almighty is Narayana and in case he named his as Narayana, it would give pleasure to them and he would remember Narayana. Ajamil agreed to name his son as Narayana.
A son was born to them and was named as Narayana. Ajamil was much attached to his son and kept calling Narayana repeatedly. Calling Narayana repeatedly became habit of Ajamil. Death time of Ajamil came and attendants of Yama came to take him. He called repeatedly Narayana. As he was calling Narayana, attendants of Vishnu ji came. They said to attendants of Yama to leave him. Attendants of Yama said that the character of Ajamil was very corrupt and he did not deserve to live. Attendants of Vishnu ji agreed with them and said but his some sins have burned. He could be permitted to live more. Attendants of Yama told that he pronounced Narayana to his son not Vaikunth’s Narayana. Attendants of Vishnu ji told that despite repeating word Narayana without knowing, it is beneficial. As in case of fire touches by mistake, it burns. Ajamil was saved from untimely death. Ajamil had listened of all their conversations. He repented very much and his life changed. Thereafter, he started taking simple food and his buddhi became steady in almighty beyond three gunas of prakriti. At the time of natural death, attendants of Vishnu ji came to take him. Ajamil purified by repeating name Narayana.
Shrimad Bhagwat Mahapuran by Shri Ramchandra Keshav Dongra ji Maharaj