God came to Abimelech in a dream and warned him he was a dead man because Sarah was Abraham's wife, so Abimelech returned her.
Watch the Teaching: Why Should a Wife Submit if Her Husband is Wrong?