Ezekiel37:17

וְקָרַב אֹתָם אֶחָד אֶל־אֶחָד לְךָ לְעֵץ אֶחָד וְהָיוּ לַאֲחָדִים בְּיָדֶךָ׃

And bring them close one to another into one stick, and they shall become one in your hand.

Ezekiel 37:17

וְקָרַב אֹתָם אֶחָד

Yechezkel / Ezekiel 37:17 · Drash

Ezekiel 37:17

וְקָרַב אֹתָם אֶחָד אֶל־אֶחָד לְךָ לְעֵץ אֶחָד וְהָיוּ לַאֲחָדִים בְּיָדֶךָ׃

And bring them close one to another into one stick, and they shall become one in your hand.

Drash דְּרָשׁ

Be one assembly

Before his death Yaakov called his sons: "assemble". The midrash explains that he bequeathed them unity, and reads this together with the prophecy of the two sticks.

Bereshit Rabbah: the sages say that Yaakov commanded his sons not to quarrel: be all of you one assembly, as Yechezkel says, "take for yourself one stick". "His companion" (חֲבֵרוֹ) is written in the singular: the children of Israel became one bundle, prepare yourselves for the redemption. And what is written next? "And I will make them one nation".

How Bereshit Rabbah explain it

Bereshit Rabbah

"The lot is cast into the lap, but its every decision is from the Eternal" (Mishlei / Proverbs 16:33). This is the lot of Yom Kippur. "And its every decision is from the Eternal": to know which goat is for the Name and which for the land cut off. Another explanation: "the lot is cast into the lap" is the lot of the tribes. "And its every decision is from the Eternal": the Holy One, blessed is He, agreed with him to give each one according to what he is. "And Yaakov called to his sons" (49:1). Rabbi Yudan and Rabbi Pinchas. Rabbi Yudan said: Yaakov called God (לָאֵל) to be with his sons. Rabbi Pinchas said: he invited Him to his sons. Rabbi Avun said: he made Him guardian over his sons. "And he said: assemble" and so on. Assemble from the land of Egypt and gather to Raamses. Assemble from the ten tribes and gather to the tribe of Yehudah and Binyamin: he commanded them to treat the tribe of Yehudah and Binyamin with honour. Rabbi Acha said: "assemble" means "purify yourselves", as you say: "and they gathered" and so on, "and they purified the chambers" (Nechemyah / Nehemiah 13:9). And the sages say: he commanded them concerning strife. He said to them: be all of you one assembly. That is what is written: "and you, son of man, take for yourself one stick and write upon it" and so on, "and for the children of Israel" and so on (Yechezkel / Ezekiel 37:16). "His companion" (חֲבֵרוֹ) is written: the children of Israel became one bundle. Prepare yourselves for the redemption. What is written after it? "And I will make them one nation" and so on (37:22). "What will befall you at the end of days" (49:1): Rabbi Simon said: he showed them the fall of Gog, as you say: "at the end of days it shall be" (Yechezkel / Ezekiel 38:16). Rabbi Yehudah said: he showed them the building of the Temple, as you say: "and it shall be at the end of days, the mountain of the House of the Eternal shall be established" (Michah / Micah 4:1). And the sages say: he came to reveal the end to them, and it was hidden from him. Rabbi Yehudah in the name of Rabbi Elazar bar Avina: to two people the end was revealed and hidden from them again, and they are Yaakov and Daniel. Daniel: "and you, Daniel, shut up the words and seal" (Daniel 12:4). Yaakov: "what will befall you at the end of days", "Reuven, you are my firstborn" (49:3): this teaches that he came to reveal the end to them and it was hidden from him. A parable of a friend of the king who was departing from the world, and his sons surrounded his bed. He said to them: come, I will reveal to you the king's secrets. He lifted his eyes and saw the king. He said to them: guard the king's honour. So Yaakov our father lifted his eyes and saw the Shechinah standing over him. He said to them: guard the honour of the Holy One, blessed is He. And the sages say: so the congregation of Korach kept sinking and going down, sinking and going down, until Chanah arose and prayed for them: "the Eternal kills and brings to life, brings down to Sheol and raises up" (Shmuel I / 1 Samuel 2:6).

Takeaway

In verse 37:16 the written text is חברו ("his companion", singular), while it is read חֲבֵרָיו ("his companions"). The midrash expounds the written form: all the tribes are one companion, one bundle.
"The land cut off" (אֶרֶץ גְּזֵרָה, Vayikra / Leviticus 16:22) is the wilderness where on Yom Kippur the goat for Azazel was led. The lot decided which goat was for the Eternal and which went there.
Gog is the enemy in Yechezkel's prophecy right after our haftarah (chapters 38–39). The midrash ties Yaakov's "end of days" to the same book.