Yamaduta
Yamadutas are the messengers of death in Hinduism. As the agents of Yama, the god of the netherworld, their role is to take the departed souls of the deceased who do not achieve moksha to Yamaloka.
Story of Ajamila
was a Brahmin, a man born in a priestly family. One day, while collecting things from the forest for religious work, he saw a woman and fell in love with her. She was a Shudra, but he married her and gave up his religious duties. Together, they had ten children. His youngest son was named Narayana, which is also another name for Lord Vishnu.Years later, when Ajamila was old and dying, he lovingly called out his son’s name — “Narayana.” At that moment, the Yamadutas came to take his soul to hell because he had committed many sins. But suddenly, the Vishnudutas appeared and stopped them.
The Yamadutas were confused and took the case to Yama, the god of death. The Vishnudutas explained that, according to holy texts, just saying the name of Vishnu — even by accident, in a joke, or while calling someone else — is powerful enough to remove all sins. Yama agreed with this and told his messengers that the Vishnudutas were correct.
Because of this, it is believed that those who take Lord Vishnu's name, even unknowingly, are protected from hell. The Yamadutas avoid harming Vaishnavas, and such people are taken to Vaikuntha instead of Yamaloka.