“Go, view the land, especially Jericho" (v1). In obedience to the command to begin to occupy Canaan, Joshua sent spies to Jericho. The spies “happened” to lodge at the house of Rahab, a woman God had already prepared to receive them. This woman – a foreigner and a prostitute – recognized that they were from God (v9) and claimed their side in the battle to come. She was so convinced of their victory that she deceived the king and risked her life.
“The Lord your God, He is God in the heavens above and on the earth beneath” (v11). We underestimate people due to cultural or personal differences, but God sees the heart and welcomes every person who honors Him.