(1) Vayhi ahar ha-d’varim ha’elle – And it came to pass after these events:
Wherever the phrase ahar ha-d’varim ha’elle is found, the context is linked to whatever comes before it. “After these events” where Avram killed the kings, The Holy One Blessed be He, said to him: “Do not fear, Avram”.
“And it came to pass after these events” when Yitzhak was born, Avraham was told etc. that Betu’el fathered Rivka.
Similarly, “after these events” where Mordechai informed on Bigtan and Teresh, King Ahashverosh raised up Haman who wanted to have Mordechai put to death, but the fact that Mordechai had saved the king’s life helped him here, and it was Haman who was hanged. Here, too, after the events when Avraham concluded a pact with Avimelech, obligating the descendants of both men, and gave him seven lambs [as a token of the pact], the Almighty was angry with Avraham for doing so, for behold, the land of the P’lishtim (Philistines) had already been given to Avraham; and also in (the book of) Yehoshua (Joshua), lots were used to divide the cities of the five P’lishtim leaders, being included within the boundaries of the land of Israel and the Holy One Blessed be He commanded, regarding them, do not not let even a single soul survive. Then the L-rd put Avraham to the test, harassed him and caused him sorrow, as is written: “has He tested you with suffering you are unable to remain silent” (Job 4:3, Rashbam to Gen. 19:11 ); ” and for their having tested G-d[Hashem]” (Exod. 17:7); Massa – trial – um’riva -and argument (also Exodus 17:7); “examine me, O G-d[Hashem], and test me” (Ps. 26:2).
In other words: “You became haughty because of the son I have given you – to conclude a pact between you and between their children.
Now go and offer him up as a burnt-offering, and see what will come of your pact!”
And afterwards I have found something similar in the midrash of Sh’muel:
“And the ark of Hashem remained in the land of the P’lishtim for seven months”. It was written [concerning Avraham’s oath]: “Take from my hand the seven lambs”.
The Holy One Blessed be He said to him: “You gave him seven lambs?
[I swear] by your life, his descendants will wage seven wars against your descendants and defeat them”.
Another interpretation: “By your life, his descendants will put to death seven righteous men of your descendants, viz., Shimshon (Samson), Hofni, Pinchas, Shaul (Saul), and his three sons”.
An alternative interpretation: “By your life, his descendants will destroy seven Temple Sanctuaries, namely: the tent of Meeting, Gilgal, Nov, and Shilo; Giv’on and the two permanent Temples [of Jerusalem].”
Yet another interpretation: “[By your life], the Ark will be passed back and forth amongst the P’lishtim for seven months.”
Rashbam concludes what does the Hebrew word “Nissa” in Genesis 22:1 connotate. He answers, harassed (namely, that G-d harassed Avraham after the Peace Treaty with Avimelech).