Hanuman is the son of the wind god, Vayu, and his tales are recounted in the Ramayana, the Mahabharata and the Puranas. He is known for his devotion to Rama. According to some, when Rama was about to offer himself to River Sarayu, his last instruction was that Hanuman stay on earth till the end of this era to spread the Ramayana. This made him immortal. Other stories say that he was struck by Indra for trying to eat the sun as a child, and when revived, granted immortality by the devas. Some legends also speculate that he was granted immortality by Sita as a token of gratitude, and for his devotion.