7 But they cried to the LORD for help, and he put darkness between you and the Egyptians; he brought the sea over them and covered them. You saw with your own eyes what I did to the Egyptians. Then you lived in the wilderness for a long time.

Read Joshua 24:7 Using Other Translations

And when they cried unto the LORD, he put darkness between you and the Egyptians, and brought the sea upon them, and covered them; and your eyes have seen what I have done in Egypt: and ye dwelt in the wilderness a long season.
And when they cried to the LORD, he put darkness between you and the Egyptians and made the sea come upon them and cover them; and your eyes saw what I did in Egypt. And you lived in the wilderness a long time.
When your ancestors cried out to the LORD, I put darkness between you and the Egyptians. I brought the sea crashing down on the Egyptians, drowning them. With your very own eyes you saw what I did. Then you lived in the wilderness for many years.