# Then it happened that

This phrase is used here to mark an important event in the story. If your language has a way for doing this, you could consider using it here.

# when all the people who were with Ishmael

Here "people" refers to those whom Ishmael and his men had captured.