Valmiki was a Rishi and a philosopher of four Vedas , having knowledge of Ashtang Yoga. Rishi means he who sees Ved mantras in his heart while in samadhi. He never saw Sri Ram until Rishi Narad once came to his ashram and told about Sri Ram. Valmikiji, with the power of Yoga, saw all about Sri Ram in Samadhi. All that time Sri Ram was ruling over Ayodhya after killing Ravana and uptil then Valmikiji became Rishi and had realized God in Samadhi so how Valmikiji could utter Mara-Mara when he had become a philosopher of four Vedas and Ashtang Yoga. Sri Ram ji was born before one crore, eighty one lakh, forty nine thousand and about eighty years. In sunder kand of Valmiki Ramayan, written by Valmikiji , in shlokas 11,12 it is mentioned that there were elephants each having white, four teeth. Such elephants were available from two and a half crore to fifteen lakh years ago in Africa. According to this shloka too, Sri Ram ji was born before nine lakhs years. Lineage is like this- Shri Ram was born in Ikshwaku family. Manu was the first king of this earth. Then Ikshwaku was the son of Manu. Then Kukshi, Vikukshi, Bann, Anrannya, Prathu, Trishanku, Dhundhumar, Yuvnashva, Mandhata, Susandhi, Dhruvsandhi, Prasenjit, Bharat, Asit, Sagar, Asmanj, Anshuman, Dileep, Bhagirath, Kakutsth, Raghu, Pravridh, Kalmashpad, Shankhan, Sudarshan, Agnivarna, Sheeghrag, Maru, Prashushruk, Ambreesh, Nahush, Yayati, Nabhag, Aj, Dashrath and then Shri Ram, Laxman, Bharat, Shatrughan