I had already mentioned that my pastor said that Rahab’s pagan gods were okay with lying in certain circumstances, but our God is never okay with lying.
Based upon your pastor's comments, the only way to avoid sin, or certain death in this situation
would be to deny the Jews safe harbor. I consider this option as morally unacceptable.