[2][3] When Bhartrhari was king of 'Ujjayani' (modern day Ujjain), there lived a Brahman who got the fruit of immortality from the celestial wish granting tree, Kalpavriksha, as a result of long austerity.
The king wanted his beloved queen, Pinglah or Ananga Sena (as per Maha Kavi Kalidas), to be youthful, and thus gifted her the fruit.
However, the queen had a secret love affair with army chief Mahipaala, she desired him to be immortal and the enchanted fruit was given to him, he in turn passed it to his beloved, 'Lakha' the head mistress.
It is said that Raja Bhartrhari was out for a hunt one day and he saw a woman jump into the pyre of her husband as her grief would not let her stay alive.
Rani Pingala said that she would die on hearing the news itself and there would be no chance of her staying alive until the funeral ceremony.
It is said that Guru Gorakhnath created 750 copies of Rani Pingala to demonstrate the illusory nature of the world to Raja Bhartrhari.
Even though Rani Pingala was brought back to life, Raja Bharthari decided to renounce the world and became a follower of Guru Gorakhnath.