"For whatever things were written before were written
for our learning, that we through the patience and comfort of
the Scriptures might have hope." (Romans 15:4)

"Now all these things happened to them [Israel]
as examples [types], and they were written for our admonition,
upon whom the ends of the ages have come. Therefore let him who
thinks he stands take heed lest he fall. No temptation has overtaken
you except such as is common to man; but God is faithful, who
will not allow you to be tempted beyond what you are able, but
with the temptation will also make the way of escape, that you
may be able to bear it. Therefore, my beloved, flee from idolatry.
(1 Corinthians 10:11-14)