Rahab and the two main characters are spies in Joshua. Rahab was a prostitute. His house was on the wall of the city and placed strategically to present travellers. It was a prime location for trade. Rahab had heard of the God of Israel and acted in faith. But Rahab knew it would take a step of faith out of its present predicament. (Siku P.224)
She had no intention of dying with the rest of Jericho. She knew that if she did nothing this would lead to their destruction. No one can serve two masters. She made a conscious decision to act on faith in what you heard about God. Rahab was an ancestor of Jesus (Matthew1:1-6). Her faith led to a huge inheritance. This is what faith can do. No matter what your stand in life, no matter where you are or who you are, just a step of faith in Jesus Christ can turn their fate around. (Riches P.18)
A zonah, which is a "whore" or, according to some, a "host" in Jericho, the Septuagint porne "prostitute"). The two spies sent by Joshua from Shittim entered his house and stayed there (Josh 2:1). She refused to betray the king of Jericho, and when he asked, she hid on the roof of his house with bundles of flax which she had laid out to dry. She pretended she had run before closing the door, and threw his pursuers off his trail. She then told the spies of the fear that the arrival of the Israelites had caused in the minds of the Canaanites - "Our hearts melt, Lord your God is God in heaven above, and down the land "- and asked the men promise to replace your father, mother, brothers and sisters, and all I had. (Miller P.19)
He promised to spare them on condition that he would remain at home and would always keep its business secret. Then she let them down by a rope through the window, her house is built on the city wall, and instructed them to make good his escape (Joshua 2:1-24).
True to his promise, the Israelites under Joshua spared Rahab and her family (Joshua 6:16 and following of the King James Version), "Y", says the author of Josh, who lives in Israel today. “His story appealed strongly to the imagination of people of later times. Hebrews 11:31 speaks of it as being saved by faith, James, on the contrary, by showing that man is justified by works and not by faith alone, curiously, chose the same example (McDonald P.29)
Jewish tradition has been kindly disposed toward Rahab, a hypothesis goes so far as to make her the wife of Joshua himself (Jewish Encyclopedia, under the word). Naturally, then, the translation of other zonah, deriving from zun, "to feed" instead of carrots, "to be a prostitute" has been preferred by some commentators. (Masalha P.19)