These two phrases share similar meanings and are combined to emphasize that the people were extremely afraid. (See: [[rc://en/ta/man/translate/figs-parallelism]])
Here the people are represented by their "hearts" to emphasize their emotions. AT: "The people were very afraid" (See: [[rc://en/ta/man/translate/figs-synecdoche]])
# The hearts of the people
The phrase "the people" refers to the Israelite soldiers.