The Vedas, the most ancient Hindu text in existence, helped to codify the oral tradition that had preceded it. It is believed that the Vedas were written between the third and the fifth centuries BC.