37:24

וַיִּקָּחֻהוּ וַיַּשְׁלִכוּ אֹתוֹ הַבֹּרָה וְהַבּוֹר רֵק אֵין בּוֹ מָיִם׃

And they took him and threw him into the pit. And the pit was empty, there was no water in it.

Bereshit 37:24

וַיִּקָּחֻהוּ וַיַּשְׁלִכוּ אֹתוֹ

Bereshit / Genesis 37:24 · Drash

Bereshit 37:24

וַיִּקָּחֻהוּ וַיַּשְׁלִכוּ אֹתוֹ הַבֹּרָה וְהַבּוֹר רֵק אֵין בּוֹ מָיִם׃

And they took him and threw him into the pit. And the pit was empty, there was no water in it.

Drash דְּרָשׁ

Yaakov's well ran dry

The midrash sees in the empty pit not only the place where Yosef (Joseph) lies, but the state of the brothers: at that hour the words of the Torah left them.

Bereshit Rabbah: Shimon (Simeon) "took him", and for this Yosef later took Shimon. There were two pits, one of stones, the other of snakes. Rabbi Acha: "the pit was empty", Yaakov's (Jacob's) well ran dry, "no water in it", no words of Torah in it. For it is written: "if a man is found kidnapping one of his brothers", and you sell your brother! Tanchuma: Shimon ordered stones thrown at Yosef, and Yosef later threw Shimon fattened fowl.

How Bereshit Rabbah and Midrash Tanchuma (Buber) explain it

Bereshit Rabbah And when Yosef came to his brothers, they stripped Yosef of his coat

Rabbi Elazar said: he came with praise [for his brothers]. "And they stripped Yosef", this is the cloak, "of his coat", this is the shirt, "the striped coat", this is the outer robe, "that was on him", this is his undergarment.
"And they took him", it is written "and he took him": who was it? Shimon. And when did he repay him? Later: "and he took Shimon from them" (Bereshit / Genesis 42:24). "And they threw him into the pit. And the pit was empty, there was no water in it": there was no water in it, but snakes and scorpions there were. There were two pits: one full of pebbles, and one full of seraphs (venomous snakes) and scorpions.
Rabbi Acha said: "the pit was empty", Yaakov's well was emptied. "There was no water in it", there were no words of Torah in it, which are likened to water, as it is said: "Ho, all who thirst, come to the water" (Yeshayahu / Isaiah 55:1). It is written: "if a man is found kidnapping one of his brothers" (Devarim / Deuteronomy 24:7), and you are selling your brother!

Midrash Tanchuma (Buber) And they took him and threw him into the pit. And the pit was empty, there was no water in it

There was no water in it, but snakes and scorpions there were. What did Shimon do? When they put him into the pit, Shimon gave orders, and they threw large stones at him to kill him. But when he himself fell into Yosef's hands, Yosef threw him fattened fowl.

Takeaway

Rabbi Acha reads "pit" (בּוֹר) as "well" (בְּאֵר): the words of Torah are likened to water, and at the hour of the sale Yaakov's "well", his sons, was left without that water.
The law of kidnapping: one who steals a man and sells him is liable to death (Devarim / Deuteronomy 24:7). The midrash rebukes the brothers: the Torah will later call this a grave crime, and you are selling your own brother.
Shimon and Yosef in Egypt: Yosef takes Shimon as hostage, but feeds him. The midrash sets the stones in the pit against the meals in prison.