Now when Joshua was near Jericho, he looked up and saw a man standing in front of him with a drawn sword in His hand. Joshua approached Him and asked, “Are You for us or for our enemies?”
Jewish Publication Society of America Version (JPS1917) - Joshua 5:13 >And it came to pass, 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 unto him, and said unto him: 'Art thou for us, or for our adversaries?'