2 Timothy 3;16 says, “All Scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness.” All means everything without exception.
Romans 15:4 says, “For whatever things were written before were written for our learning, that we through the patience and comfort of the Scriptures might have hope.” I love to read autobiographies, and biographies because I learn first hand how they navigated through their impossibilities.
The record of the children of Israel is a biography. 1 Corinthians 10:6 says, “Now these things became our examples, to the intent that we should not lust after evil things as they lusted.”
What happened at the dead end before the Red Sea? Exodus 14. They were afraid. Verse 12 says, “…it would have been better for us to serve the Egyptians than that we should die in the wilderness.” How often we resist God’s way and grieve the Holy Spirit.