Pope Pius XII
Divino Afflante Spiritu §38
Divino Afflante Spiritu: On Promoting Biblical Studies
38 Hence the Catholic commentator, in order to comply with the present needs of biblical studies, in explaining the Sacred Scripture and in demonstrating and proving its immunity from all error, should also make a prudent use of this means, determine, that is, to what extent the manner of expression or the literary mode adopted by the sacred writer may lead to a correct and genuine interpretation; and let him be convinced that this part of his office cannot be neglected without serious detriment to Catholic exegesis. Not infrequently - to mention only one instance - when some persons reproachfully charge the Sacred Writers with some historical error or inaccuracy in the recording of facts, on closer examination it turns out to be nothing else than those customary modes of expression and narration peculiar to the ancients, which used to be employed in the mutual dealings of social life and which in fact were sanctioned by common usage.
Source: Divino Afflante Spiritu (Vatican.va)