Sage Valmiki was present in Ayodhya to attend the Ashwamedha yagya. Sri Ram asked him about the identity of the two children--Lav and Kush, Valmiki said --- Sita was pregnant at the time you had abandoned her. I gave her refuge in my hermitage where she gave birth to twins--Lav and Kush. Both the children were brought up in my hermitage with love and care. I taught them all the sacred texts and scriptures and made them masters of various weaponries. So, Lav and Kush are your sons. You must bring Sita back to Ayodhya with due honour, because she is pure and chaste. Moreover your whole army owe its life to her."
Sri Ram's heart was filled with grief. He instructed Laxman to bring Sita along with Lav and Kush. Laxman went to Valmiki's hermitage and requested Sita to return to Ayodhya. Sita refused to return but sent Lav and Kush along with Laxman. When Sri Ram found that only Lav and Kush had come, he once again sent Laxman to bring Sita. Laxman followed his instruction and went to Valmiki's hermitage for the second time.Meanwhile, Valmiki instructed Lav and Kush to sing the praise of Sri Ram in their melodious voice. Everybody was moved by their soulful rendition. Sri Ram took Lav and Kush in his embrace.
The horse was bathed by that water. Ram then said to the horse -
Hearing this the man said - "Bhagavan, You know everything, but when You are asking me, I am telling You everything. In my previous life I was a very religious Braahman, but I committed a crime. One day I went to the banks of Sarayoo River and started meditating upon You after doing Tarpan etc. At that time many people came to me and I cheated them in many ways. Durvaasaa Rishi also came and looked at me. I was observing Maun (quiet), so neither I offered him Arghya nor I welcomed him by words. Durvaasaa Rishi got angry at this and he gave me Shaap - "You are showing such pride on the banks of Sarayoo River, be born in animal species."
I felt very sad so I held his feet. He kindly said to me, "You will become Raam's Ashwamedh Yagya horse and as soon as Raam will touch you, you will attain Parampad." So that Shaap became a Var for me. Whatever touch is difficult to attain even after taking millions of lives even for Devtaa, I have got that touch of your fingers now. Now please permit me, I am attaining Parampad because of Your grace only."
Vashishth Jee said to Raam - "Now you offer Karpoor (camphor) to Devtaa, this will make them come in person and take Havishya."