And it was told to the king of Jericho, “Behold, men of Israel have come here tonight to search out the land.”
Joshua 2:2

Did the Canaanites send spies into the Israelite camp in the wilderness? Did Rahab have spies in her own house? How else did the king of Jericho find out about Joshua's two spies in Joshua 2:2?