Her husband Joseph was a godly man. He did not want to put her to shame in public. So he planned to divorce her quietly.