They therefore did this in this way, and took two cows, etc. The Philistines made the ark according to the advice of their priests and diviners. And the faithful stewards of it will also act in accordance with the predictions or future instructions of previous priests and prophets; let us also make corrections either of our own, or of a neighbor, namely the members of the Church according to the command of spiritual teachers. No one should think it absurd that we say the deeds of unbelieving diviners and priests overflow to the interpreting prophets and teachers of the Church with spiritual my...stery; but rather, recognizing the use of allegorical speech, let the one who reads see that even those things that not only unbelievers but also those openly hostile to God have done are typologically related by distinguished expositors for the observance of most wholesome piety. No less sacred or full of mystical piety is it that the impious persecutor of the Lord in His passion clothed Him in a purple or white robe, crowned Him with thorns, gave Him vinegar to drink, hung Him on the cross, wrote "King" in Latin, Greek, and Hebrew, than that His devout and inviolate mother wrapped Him in swaddling clothes at His birth, laid Him in a manger, shepherds praised Him, magi worshipped Him; that when He was killed, His chosen disciples anointed Him with spices, wrapped Him in linen clothes, laid Him in a stone tomb, closed it with a large stone, and do not doubt to learn useful things from people of any kind, your fellow human beings. Hear what Solomon says: "Go to the ant, O sluggard, consider her ways, and be wise" (Prov. VI).
Source: Commentary on Samuel