Divino Afflante Spiritu
Encyclical of Pope Pius XII
September 30, 1943.
Inspired by the Divine Spirit, the Sacred Writers composed those books, which God, in His paternal charity towards the human race, deigned to bestow on them in order “to teach, to reprove, to correct, to instruct in justice: that the man of God may be perfect, furnished to every good work” (
1 ) . This heaven-sent treasure Holy Church considers as the most precious source of doctrine on faith and morals. No wonder herefore that, as she received it intact from the hands of the Apostles, so she kept it with all care, defended it from every false and perverse interpretation and used it diligently as an instrument for securing the eternal salvation of souls, as almost countless documents in every age strikingly bear witness.
+++
While this is a latter reference (1943), Pope Pius XII does appear to infer that The Church has regarded scripture as an infallible doctrine from the time of the Apostles.
You can read this entire document where he references the doctrine of faith and morals several times by
clicking here