Pope Pius XII
Divino Afflante Spiritu §24
Divino Afflante Spiritu: On Promoting Biblical Studies
24 The commentators of the Sacred Letters, mindful of the fact that here there is question of a divinely inspired text, the care and interpretation of which have been confided to the Church by God Himself, should no less diligently take into account the explanations and declarations of the teaching authority of the Church, as likewise the interpretation given by the Holy Fathers, and even "the analogy of faith" as Leo XIII most wisely observed in the Encyclical Letter Providentissimus Deus . With special zeal should they apply themselves, not only to expounding exclusively these matters which belong to the historical, archaeological, philological and other auxiliary sciences - as, to Our regret, is done in certain commentaries - but, having duly referred to these, in so far as they may aid the exegesis, they should set forth in particular the theological doctrine in faith and morals of the individual books or texts so that their exposition may not only aid the professors of theology in their explanations and proofs of the dogmas of faith, but may also be of assistance to priests in their presentation of Christian doctrine to the people, and in fine may help all the faithful to lead a life that is holy and worthy of a Christian.
Source: Divino Afflante Spiritu (Vatican.va)