Sukadeva Gosvami continued: Ajamila then saw three awkward persons with deformed bodily features, fierce, twisted faces, and hair standing erect on their bodies. With ropes in their hands, they had come to take him away to the abode of Yamaraja. When he saw them he was extremely bewildered, and because of attachment to his child, who was playing nearby, Ajamila began to call him loudly by his name. Thus with tears in his eyes he somehow or other chanted the holy name of Narayana. (Srimad-Bhagavatam 6.1.28-29)
Anxious to Save Themselves from Death
At the time of death people become very anxious to save themselves, especially those who have been sinful. Of course, the soul itself is not subject to death (na hanyate hanyamane sarire [Bg. 2.20]), but leaving the present body and entering into another body is very painful. At death the living entity can no longer bear to remain in his present body -- the pain is so acute. Sometimes when a person's life becomes too painful he commits suicide. But suicide is a sin punishable by the laws of karma.
When Ajamila was dying, he saw three ferocious and very frightening persons with ropes in their hands, unruly hair on their heads, and bodily hair like bristles. These assistants of Yamaraja, the Yamadutas, had come to drag Ajamila out of his body and take him to the court of Yamaraja. Sometimes a dying man cries out in fear when he sees the Yamadutas. Ajamila, too, became very fearful.
Fortunately, even though Ajamila was referring to his son, he chanted the holy name of Narayana, and therefore the order-carriers of Narayana, the Visnudutas, also immediately arrived there. Because Ajamila was extremely afraid of the ropes of Yamaraja, he chanted the Lord's name with tearful eyes. Actually, however, he never meant to chant the holy name of Narayana; he meant to call his son.
>>> Ref. VedaBase => SC 4: Neither Birth Nor Death