Smith's Bible Dictionary (1863)
(wide), a celebrated woman of Jericho who received the spies sent by Joshua to spy out the land, hid them in her house from the pursuit of her countrymen, was saved with all her family when the Israelites sacked the city, and became the wife of Salmon and the ancestress of the Messiah. ) She was a “harlot”, and probably combined the trade of lodging-keeper for wayfaring men.
Her reception of the spies, the artifice by which she concealed them from the king: their escape, and the saving of Rahab and her family at the capture of the city in accordance with their promise, are fold in the narrative of (Joshua 2:1) ... As regards Rahab herself, she probably repented, and we learn from (Matthew 1:5) that she became the wife of Salmon the son of Naasson, and the mother of Boaz, Jesse’s grandfather.