A king who understood the transient nature of the world, gave up his kingdom and started meditating in the Gandhamadana mountains. Indra was pleased with him and sent a messenger to bring him to the heavens. But when the king heard that evil things happened in heaven too, he gave up the desire to go there. Indra then asked the messenger to send the king to Valmiki’s hermitage. As per Yogavasishta, Valmiki told the king that listening to the Ramayana could help him attain moksha.