Because Rahab aligned herself with Jehovah’s organization of that time, God saw to it that she and her household were spared when the Israelites conquered Jericho.
لِأَنَّنَا قَدْ سَمِعْنَا كَيْفَ جَفَّفَ يَهْوَهُ مِيَاهَ ٱلْبَحْرِ ٱلْأَحْمَرِ أَمَامَكُمْ .‏ .‏ .‏