Rahab had been a prostitute, but she had faith and welcomed the spies. So she wasn't killed with the people who disobeyed.