After the victory of Rama over Ravana, Hanuman went to the Himalayas to continue his worship of the Lord. There he scripted a version of the Ramayana on the Himalayan mountains using his nails, recording every detail of Rama's deeds. When Maharishi Valmiki visited him to show him his own version of the Ramayana, he saw Hanuman's version and became very disappointed.
When Hanuman asked Valmiki the cause of his sorrow, the sage said that his version, which he had created very laboriously, was no match for the splendour of Hanuman's, and would therefore go ignored. At this, Hanuman discarded his own version, which is called the Hanumad Ramayana. Maharishi Valmiki was so taken aback that he said he would take another birth to sing the glory of Hanuman which he had understated in his version.
Later, one tablet is said to have floated ashore during the period of Mahakavi Kalidasa, and hung at a public place to be deciphered by scholars. Kalidasa is said to have deciphered it and recognised that it was from the Hanumad Ramayana recorded by Hanuman in an extinct script, and considered himself very fortunate to see at least one pada of the stanza.