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?"
Joshua 5:13
Surrounding context
5:12 Then the manna ceased on the day after they had eaten the produce of the land; and the children of Israel no longer had manna, but they ate the food of the land of Canaan that year.
5:13 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?"
5:14 So He said, "No, but as Commander of the army of the LORD I have now come." And Joshua fell on his face to the earth and worshiped, and said to Him, "What does my Lord say to His servant?"