ESV: When Joshua was by Jericho, he lifted up his eyes and looked, and behold, a man was standing before him with his drawn sword in his hand. And Joshua went to him and said to him, "Are you for us, or for our adversaries?"
NIV: 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 went up to him and asked, "Are you for us or for our enemies?"
NASB: Now it came about when Joshua was by Jericho, he raised his eyes and looked, and behold, a man was standing 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 enemies?'
CSB: 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?"
NLT: When Joshua was near the town of Jericho, he looked up and saw a man standing in front of him with sword in hand. Joshua went up to him and demanded, 'Are you friend or foe?'
KJV: 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?
NKJV: 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?”