It is common for non-Christians to mistakenly believe that they have to "clean up" their life before coming to Christ by faith. Joshua and Rahab were from opposite ends of the moral spectrum but were co-participants in a mighty work of God--and both played their part by faith. Covers Hebrews 11:30-31.
From the series Hebrews.