"And they judged the people at all times; the hard matter they brought to Moses" (Exodus 18:26). The Holy One, blessed be He, said to him: Moses, you judge the hard questions? Behold, the daughters of Zelophehad are coming to ask about a law that even schoolchildren could answer, and you will not know what to answer; rather, "And Moses brought their case before the LORD" (Numbers 27:5).
The Hard Case That Even Moses Brought Before the LORD
Mekhilta DeRabbi Shimon Ben Yochai 18:25
ושפטו את העם בכל עת את הדבר הקשה יביאון אל משה אמר לו הקב״ה משה אתה דן את הקושיות הרי בנות צלפחד באין לשאל בדין שאפלו תנוקות משיבין עליו ואין אתה יודיע מה להשיב אלא (במדבר כ"ז ה') ויקרב משה את משפטן לפני ה':