Wisdom 18:19

19 For the dreams that troubled them did foreshew this, lest they should perish, and not know why they were afflicted.

Wisdom 18:19 In-Context

17 Then suddenly visions of horrible dreams troubled them sore, and terrors came upon them unlooked for.
18 And one thrown here, and another there, half dead, shewed the cause of his death.
19 For the dreams that troubled them did foreshew this, lest they should perish, and not know why they were afflicted.
20 Yea, the tasting of death touched the righteous also, and there was a destruction of the multitude in the wilderness: but the wrath endured not long.
21 For then the blameless man made haste, and stood forth to defend them; and bringing the shield of his proper ministry, even prayer, and the propitiation of incense, set himself against the wrath, and so brought the calamity to an end, declaring that he was thy servant.

The Brenton translation of the Septuagint is in the public domain.