Shemot18:25

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

And Moshe chose capable men out of all Israel, and made them heads over the people: officers of thousands, officers of hundreds, officers of fifties and officers of tens.

Shemot 18:25

וַיִּבְחַר מֹשֶׁה אַנְשֵׁי־חַיִל

Shemot / Exodus 18:25 · Drash

Shemot 18:25

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

And Moshe chose capable men out of all Israel, and made them heads over the people: officers of thousands, officers of hundreds, officers of fifties and officers of tens.

Drash דְּרָשׁ

Four qualities and one

You look for a worker with every quality you need and find a person with only one. The midrash says this happened to Moshe (Moses) too, and tells what the Most High answered him.

Shemot Rabbah: Yitro (Jethro) told Moshe four qualities of a judge, and Moshe found people with only one of them, "capable men", and made them judges. Then the Holy One, blessed is He, said to Moshe: I gave you the laws, and you appointed others who do not know them. Go yourself and teach them. That is why it says: "And these are the laws".

How Shemot Rabbah explain it

Shemot Rabbah "And these are the laws" (Shemot / Exodus 21:1)

What does "and these" mean? Come and see how the Holy One, blessed is He, loved Moshe. When Datan and Aviram shamed him in Egypt and said to him: "Who made you a ruler and a judge over us?" (Shemot / Exodus 2:14), the Holy One, blessed is He, said: because you shamed him, I give him greatness. As it says: "And these are the laws".

Another explanation: "And these are the laws", because Moshe heard from Yitro, who said: "And you shall seek out from all the people." Four qualities he told him, and Moshe found only one, as it says: "And Moshe chose capable men", and he appointed them judges over Israel. The Holy One, blessed is He, said to him: I gave you the law, and you appointed others, and they do not know. Go you and teach them. As it says: "And these are the laws".

Takeaway

"And these are the laws" (וְאֵלֶּה הַמִּשְׁפָּטִים) are the first words of the next weekly portion, Mishpatim (Shemot / Exodus 21:1). The midrash reads the letter vav (ו), "and", as a link to the story of the judges before it.
Datan and Aviram are two men of Israel who quarrelled in Egypt. The sages name them in the story of Moshe standing up for one of them (Shemot Rabbah 1:29). Later they rebelled with Korach (Bamidbar / Numbers 16:1).
The four qualities are "capable men, who fear the Almighty, men of truth, who hate unjust gain" (Shemot / Exodus 18:21).