Rahab, the prostitute, had faith. So she welcomed the spies. That's why she wasn't killed with those who didn't obey God.