Who did Joshua say should not be killed in the city of Jericho?

Rahab and her family

And the city shall be accursed, even it, and all that are therein, to the LORD: only Rahab the harlot shall live, she and all that are with her in the house, because she hid the messengers that we sent. Joshua 6:17