According to Jainism there was a King named Mahabal. Once, in a religious
festival, he prohibited the hunting in the state, but his son killed an
animal secretly. When the gardener told the king about his son killing an
animal, the King became very angry and ordered to hang the Prince. The
King sent his servants to fetch the hangman Yampal Chandal. The King
ordered him to hang the Prince.
Yampal Chandal requested the King,"Oh lord I shall not kill the Prince
because it is Chaturdashi today. I had taken a vow from a Digamber saint
not to kill anybody on Chaturdashi. Hearing this the King became angry and
ordered his servants to bound Yampal and the Prince and throw them into
the sea. But by the impression of Yampal's vow, the Gods of water saved
Yampal from drowning.