I recently read a novel called "Pearl in the Sand' by Tessa Afshar, which was based on the Biblical story of Rahab.
When it came to the part of the story where Joshua encounters a man with a drawn sword I was captivated by what happened.
In Joshua 5:13 it says:
"And it came to pass, when Joshua was by Jericho, that he lifted his eyes and looked, and behold, a Man stood opposite him with His sword drawn in His hand. And Joshua went to Him and said to Him, “Are You for us or for our adversaries?”
In verse 14 the man simply answers:
“No, but as Commander of the army of the LORD I have now come.”
"Are You for us or for our adversaries?"
The answer was "no."
In the novel Tessa puts it this way:
"Then it dawned on Joshua that God was not on Israel's side; He beckoned Israel to be on His side."
Something to think about.