Bamidbar27:5

וַיַּקְרֵב מֹשֶׁה אֶת־מִשְׁפָּטָן לִפְנֵי יְהוָה׃

And Moshe brought their case before the Eternal.

Bamidbar 27:5

וַיַּקְרֵב מֹשֶׁה אֶת־מִשְׁפָּטָן

Bamidbar / Numbers 27:5 · Drash

Bamidbar 27:5

וַיַּקְרֵב מֹשֶׁה אֶת־מִשְׁפָּטָן לִפְנֵי יְהוָה׃

And Moshe brought their case before the Eternal.

Drash דְּרָשׁ

The pearl and the child's bead

Sometimes a person promises: "Leave the hardest part to me." And then stumbles on the easiest. The midrash tells how this happened to David and to Moshe (Moses).

Tanchuma: a righteous man who grows proud in a matter of a commandment errs in something simple. David called the laws of the Torah light as songs and erred by setting the ark on a wagon. Moshe told the judges "bring the hard case to me", and the law of daughters' inheritance was hidden from him. Like a money changer's apprentice who brought his master a child's bead instead of a pearl.

How Midrash Tanchuma explain it

Midrash Tanchuma And Moshe brought their case

Some say: the matter was hidden from Moshe (Moses), because there are righteous men who grew proud in matters of a commandment, and the Holy One, blessed is He, weakened their strength. You find that David said: "Your statutes have been songs to me" (Tehillim / Psalms 119:54): light and familiar to me like songs. The Holy One, blessed is He, said to him: "By your life, in the end you will err in a thing that even schoolchildren know."

When he brought up the ark, he erred and put it on a wagon, as it is said: "And they set the ark of the Almighty on a new wagon" (Shmuel II / II Samuel 6:3). The ark hung in the air, the cows slipped out from under it. Uzza came near to steady it, "and the Almighty struck him there for the error" (Shmuel II / II Samuel 6:7), because an error in learning counts as wilful. At once "David was grieved because the Eternal had made a breach upon Uzza" (Shmuel II / II Samuel 6:8). The Holy One, blessed is He, said to him: "Did you not say: 'Your statutes have been songs to me'? Did you not learn: 'But to the sons of Kehat he gave none, for the service of the holy things was theirs: they carry on the shoulder' (Bamidbar / Numbers 7:9)?" He began to repent and said: "The Eternal our Almighty made a breach among us, because we did not seek Him as is right" (Divrei HaYamim I / I Chronicles 15:13).

So too Moshe: because he said: "And the matter that is too hard for you, bring it to me, and I will hear it" (Devarim / Deuteronomy 1:17), the Holy One, blessed is He, weakened his strength. What is this like? Like a money changer who said to his apprentice: "If they bring you coins to change, change them. If they bring a pearl, bring it to me." A single child's bead was brought to him, and he took it to his master. And the master went to show it to someone else.

So too Moshe said: "And the matter that is too hard for you, bring it to me." The daughters of Tzelofchad (Zelophehad) came, and the matter was hidden from him, as it is said: "And Moshe brought their case before the Eternal." "The daughters of Tzelofchad speak right": such is the law. The Holy One, blessed is He, said to Moshe: "Did you not say so: 'And the matter that is too hard for you, bring it to me'? The law that you do not know, look, the women know it."

Takeaway

The Levites of the family of Kehat carried the ark of the covenant on their shoulders, on poles, not on a wagon (Bamidbar / Numbers 7:9).
The story of Uzza and the ark: Shmuel II / II Samuel 6:1–11. The second time David had the Levites carry the ark on their shoulders (Divrei HaYamim I / I Chronicles 15:13–15).
"An error in learning counts as wilful": so it is said in the Mishnah (Avot 4:13).