Pharaoh sinned against the Tenth Commandment, and was therefore plagued with great plagues (Gen 12:15,17). Abimelech coveted Abraham's wife, and the Lord threatened death to him and his, except he restored her again; yea, though he had not come near her, yet for coveting and taking her the Lord fast closed up the wombs of his house (Gen 20:3,18).