But there have been certain heretics who, disdaining the Old Testament, explained that the Apostle repudiated it when he said: do not give heed to fables and endless genealogies. Augustine answers them by saying that the Apostle makes use of the stories and genealogies of the Old Testament: Abraham had two sons; the one by a bondwoman, and the other by a free woman (Gal 4:22). Therefore, if he had repudiated it, he would not have made use of it.
That is why he says, fables, not the law given in writing, but handed down orally, namely, the Talmud; not the things Moses transmitted orally, but t...he things others added to it, such as the silly fable that Adam had another wife, from whom demons were born: you have made void the commandment of God for your tradition (Matt 15:6); they will be turned unto fables (2 Tim 4:4).
The reason for this prohibition is that they furnish questions, i.e., contentions: contend not in words (2 Tim 2:14); it is an honor for a man to separate himself from quarrels (Prov 20:3); rather than the edification of God, which is in faith, i.e., when a person has been confirmed in the true faith, to which all doctrine should tend.
Source: Commentary on 1 Timothy