And it came to pass when Joshua was by Jericho that he lifted up his eyes and looked, and behold, a man stood in front of 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?” Bible see other translations

“when Joshua was by Jericho.” The chronology is general; God does not tell us exactly when this happened.

“And Joshua went to him.” God had told Joshua not to fear, and Joshua shows no fear in this situation. Also, it must have been clear to Joshua that this “man” was not a Canaanite, but Joshua apparently did not recognize the dress or appearance.

Commentary for: Joshua 5:13