Three days after performing brit mila on himself, Avraham is visited by Hashem. When three angels appear in human form, Avraham rushes to show them hospitality by bringing them into his tent, despite this being the most painful time after the operation. Sarah laughs when she hears from them that she will bear a son next year. Hashem reveals to Avraham that He will destroy Sodom, and Avraham pleads for Sodom to be spared. Hashem agrees that if there are fifty righteous people in Sodom He will not destroy it. Avraham "bargains" Hashem down to ten righteous people. However, not even ten can be found. Lot, his wife and two daughters are rescued just before sulfur and fire rain down on Sodom and her sister cities. Lot’s wife looks back and is turned into a pillar of salt. Lot’s daughters fear that as a result of the destruction there will be no husbands for them. They decide to get their father drunk and through him to perpetuate the human race. From the elder daughter, Moav is born, and from the younger, Ammon.
Avraham moves to Gerar where Avimelech abducts Sarah. After Hashem appears to Avimelech in a dream, he releases Sarah and appeases Avraham. As promised, a son, Yitzchak, is born to Sarah and Avraham. On the eighth day after the birth, Avraham circumcises him as commanded. Avraham makes a feast the day Yitzchak is weaned. Sarah tells Avraham to banish Hagar and Hagar's son Yishmael because she sees in him signs of degeneracy. Avraham is distressed at the prospect of banishing his son, but Hashem tells him to listen to whatever Sarah tells him to do. After nearly dying of thirst in the desert, Yishmael is rescued by an angel, and Hashem promises that he will be the progenitor of a mighty nation.
Avimelech enters into an alliance with Avraham when he sees that Hashem is with him. In a tenth and final test of Avraham, Hashem instructs Avraham to take Yitzchak, who is now 37, and to offer him as a sacrifice. Avraham does this, in spite of ostensibly aborting Jewish nationhood and contradicting his life-long preaching against human sacrifice. At the last moment, Hashem sends an angel to stop Avraham. Because of Avraham’s unquestioning obedience, Hashem promises him that even if the Jewish People sin, they will never be completely dominated by their foes. The Torah portion concludes with the genealogy and birth of Rivka.