Bamidbar34:17

אֵלֶּה שְׁמוֹת הָאֲנָשִׁים אֲשֶׁר־יִנְחֲלוּ לָכֶם אֶת־הָאָרֶץ אֶלְעָזָר הַכֹּהֵן וִיהוֹשֻׁעַ בִּן־נוּן׃

"These are the names of the men who shall divide the land to you for inheritance: Elazar (Eleazar) the kohen and Yehoshua (Joshua) the son of Nun.

Bamidbar 34:17

אֵלֶּה שְׁמוֹת הָאֲנָשִׁים

Bamidbar / Numbers 34:17 · Drash

Bamidbar 34:17

אֵלֶּה שְׁמוֹת הָאֲנָשִׁים אֲשֶׁר־יִנְחֲלוּ לָכֶם אֶת־הָאָרֶץ אֶלְעָזָר הַכֹּהֵן וִיהוֹשֻׁעַ בִּן־נוּן׃

"These are the names of the men who shall divide the land to you for inheritance: Elazar (Eleazar) the kohen and Yehoshua (Joshua) the son of Nun.

Drash דְּרָשׁ

The lot that spoke

When something shared is divided, an inheritance or the rooms of a house, it is easy to quarrel. Each one thinks the other got the better part. How do you divide so that no one argues?

Midrash Tanchuma: the lot puts an end to quarrels, so the land was divided only by lot. Elazar (Eleazar) the kohen, before the lot was drawn, announced by the spirit of holiness which tribe would receive which place. Yehoshua (Joshua) drew the lot, and the lot itself cried out whose it was.

How Midrash Tanchuma explain it

Midrash Tanchuma Elazar the kohen and Yehoshua son of Nun

"But by lot" (Bamidbar / Numbers 26:55). Of this it says: "The lot puts an end to quarrels" (Mishlei / Proverbs 18:18). For the sign of every tribe's portion is already written by Yaakov (Jacob): "Zevulun (Zebulun) shall dwell at the shore of the seas", "Yissachar (Issachar) is a strong donkey", "From Asher, his bread shall be rich". So you have no right to divide except by lot.

And wonders happened with the lot. Elazar the kohen wears the Urim and Tumim, and the urn of lots stands before Yehoshua, as it says: "And I will cast lots for you here before the Eternal our Almighty" (Yehoshua / Joshua 18:6). Before the lot comes up, Elazar says by the spirit of holiness: "The lot of such-and-such a tribe comes up, and it will receive such-and-such a place." And Yehoshua stretches out his hand, and the lot comes up, as it says: "These are the inheritances that Elazar the kohen and Yehoshua son of Nun divided" (Yehoshua / Joshua 19:51).

And beyond that, the lot cried out as it came up: "I am the lot of such-and-such a tribe, such-and-such a place has fallen to it." And how do we know that the lot speaks? As it says: "by the mouth (פִּי) of the lot" (Bamidbar / Numbers 26:56).

Takeaway

Elazar is the son of Aharon (Aaron) and high priest after him (Bamidbar / Numbers 20:28).
The Urim and Tumim are what the high priest wore in the breastplate of judgment (Shemot / Exodus 28:30). Through them Elazar asked the Eternal on Yehoshua's behalf (Bamidbar / Numbers 27:21).
The midrash explains the law of dividing the land by lot (Bamidbar / Numbers 26:55–56). Our verse names those who will divide it, and the book of Joshua says that Elazar and Yehoshua divided the land so (Yehoshua / Joshua 19:51).
The words about Zevulun, Yissachar and Asher come from Yaakov's blessing of his sons (Bereshit / Genesis 49:13, 49:14, 49:20).
In the words "by the lot" (עַל פִּי הַגּוֹרָל) the word פִּי means "by", but literally it is "mouth". From this the midrash teaches that the lot spoke.