Rahab was one of those unexpected characters in the Bible. Even though she made her living as a prostitute, she was selected for high honor.
She heard about the God of Israel and recognized him as the true God, the One worth risking your life for. And she did risk her life for him.
Then Rahab went up to the spies and pleaded for her life and for the lives of her family members. She made an oath with them. Rahab would keep silent about their mission and the Israelites would spare everyone in her household when they invaded the city. She was to hang a scarlet cord from her window as a sign, so the Jews could find and protect her.
Rahab learned that following GOD will change your life forever. God judges us differently than people judge us.