Then God said to Abimelech in a dream, "Yes, I know that you are innocent and that you did not know what you were doing. I saved you. I did not allow you to sin against me. I was the one who did not allow you to sleep with her.
So give Abraham his wife again. He is a prophet. He will pray for you, and you will live. But if you don't give Sarah back to him, I promise that you will die. And all your family will die with you."
Then Abimelech called Abraham and said to him, "Why have you done this to us? What wrong did I do to you? Why did you lie and say that she was your sister? You brought great trouble to my kingdom. You should not have done this to me.
God led me away from my father's house. He led me to wander to many different places. When that happened, I told Sarah, 'Do something for me. Wherever we go, tell people you are my sister.'"
Abimelech said to Sarah, "I gave your brother Abraham 1000 pieces of silver. I did this to show that I am very sorry. I want everyone to see that I did the right thing."
The Lord made all the women in Abimelech's family not able to have children. God did this because Abimelech had taken Sarah, Abraham's wife. But Abraham prayed to God, and God healed Abimelech, his wife, and his servant girls.