It happened, when Joshua was by Jericho, that he lifted up his eyes and looked, and, behold, there stood a man over against 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?
God not only instructed Joshua concerning what he should do in the battle ahead, but this theophany assured Joshua that Yahweh would also personally lead His people in battle. We need not conclude, however, that this divine Leader continued to be visible after this. There is no reference to Him in the record of the battle that follows. His appearance on this occasion simply impressed Joshua with the fact that God would be leading Israel.