When Joshua was near Jericho, he looked up. He caught sight of a man standing in front of him with his sword drawn. Joshua went up and said to him, "Are you on our side or that of our enemies?"
He said, "Neither! I'm the commander of the LORD's heavenly force. Now I have arrived!" Then Joshua fell flat on his face and worshipped. Joshua said to him, "What is my master saying to his servant?"
The commander of the LORD's heavenly force said to Joshua, "Take your sandals off your feet because the place where you are standing is holy." So Joshua did this.