Joshua 5:13 NLT

13 As Joshua approached the city of Jericho, he looked up and saw a man facing him with sword in hand. Joshua went up to him and asked, "Are you friend or foe?"