When reading about Rahab, it is important not to play her down by thinking of her as an essentially nice person who just happened to live among some pagans with a different religion. She was a prostitute who was born and raised in a culture so corrupted that God eventually had to destroy it.
When Rahab hid the Israelite spies in her home (Josh. 2) she told them “And as soon as we had heard these things, our hearts did melt, neither did there remain any more courage in any man, because of you: for the Lord your God, he is God in heaven above, and in earth below.”
Rahab’s ability to intellectually get past her upbringing, the fact that she came to a true understanding and respect for who the God of the Israelites really is, and her decision to abandon her culture and trust in the Lord God is astounding.
Her life story tells us that no one’s background and past is so horrible that they are beyond God’s grace and ability to save. God’s acceptance of her repentance and his forgiveness of her is so complete that this former Canaanite prostitute was chosen to be an ancestress of the Messiah. (Matt. 1:5)
Surely God’s love, grace and mercy toward us, as sinners in a sinful culture, is mighty to save even us.