Once he was sent by his father to bring twigs from the jungle to make the sacriflcial fire. There he was fascinated by the beauty of a Shudra woman, whom he married. He forsook the idea of retuming home and lived \’with his Shudra wife, who bore several children. The name of his eldest son was Narayana. Ajamila became absorbed in all types of vices.
When at the ripe age of eighty-seven, the messengers of Yama came, he was frightened and shouted loudly the name of his eldest son Narayana. It is said that NARAYANA (God) appeared there and drove away the messengers of Yama. From that day, he relinquished all vices and became a true devotee of Lord-God. Because of his great penance, he attained salvation. Through this episode, it is illustrated that even the highly vicious persons like Ajamila can attain salvation.
References :
1. Kohli, Surindar Singh, Dictionary of Mythological References in Guru Granth Sahib, 1993