On the opposite side they looked back and saw the Egyptians entering the seafloor path When the Egyptians were all within the seawall passage God allowed the waters to flow back drowning the Egyptian army

Can you repeat this sentence, but add in punctuation?
On the opposite side they looked back and saw the Egyptians entering the seafloor path. When the Egyptians were all within the seawall passage, God allowed the waters to flow back, drowning the Egyptian army.