I am not saying Rahab did not lie, she did, but it was not because of her lies God spared her and her family, it was because of her faith. If it was only based on her lies she would have perished with the rest of the city.Jos 2:3 And the king of Jericho sent unto Rahab, saying, Bring forth the men that are come to thee, which are entered into thine house: for they be come to search out all the country.
4 And the woman took the two men, and hid them, and said thus, There came men unto me, but I wist not whence they were:
Yes Rahab lied! and she was justified in her actions before God!