God knew that King Abimelech had acted honestly and he protected him from the harm that was going to come to him because Abraham and Sarah had lied. It is never right to lie and it always makes things worse.
Sermonaudio: http://sermonaudio.com/sermon/91721193191684