And all this praise - from where did it come? From the tribe of Judah. This is what Scripture says "And He said to man: Behold, the fear of the LORD is wisdom" (Job 28:28). And it is written (Exodus 1:17) "And the midwives feared God." And how did the Holy One, blessed be He, repay them? (Exodus 1:21) "And He made them houses" - houses of priesthood and kingship. Jochebed took priesthood and kingship as her reward: Moses and Aaron. And what reward did Miriam take? Wisdom, as it is said "Behold, the fear of the LORD is wisdom." From her He raised up Bezalel, who was wise, as it is said (Exodus 31:3) "And I have filled him with the spirit of God."
How the Midwives' Fear of Heaven Built Houses of Priesthood and Kingship
Yalkut Shimoni on Torah 412:1
וְכָל הַשֶּׁבַח הַזֶּה מֵהֵיכָן בָּא, מִשִּׁבְטוֹ שֶׁל יְהוּדָה. זֶה שֶׁאָמַר הַכָּתוּב "וַיֹּאמֶר לָאָדָם הֵן יִרְאַת ה' הִיא חָכְמָה", וּכְתִיב (שמות א, יז) "וַתִּירֶאנָה הַמְיַלְּדֹת אֶת הָאֱלֹהִים", וּמַה פָרַע לָהֶן הַקָּדוֹשׁ בָּרוּךְ הוּא, (שם, כא) "וַיַּעַשׂ לָהֶם בָּתִּים", בָּתֵּי כְהֻנָּה וּמַלְכוּת, יוֹכֶבֶד נָטְלָה כְּהֻנָּה וּמַלְכוּת שְׂכָרָהּ, מֹשֶׁה וְאַהֲרֹן, וּמַה נָּטְלָה מִרְיָם שְׂכָרָהּ, חָכְמָה שֶׁנֶּאֱמַר "הֵן יִרְאַת ה' הִיא חָכְמָה", הֶעֱמִיד מִמֶּנָּה בְּצַלְאֵל, שֶׁהָיָה חָכָם, שֶׁנֶּאֱמַר (שמות לא, ג) "וַאֲמַלֵּא אֹתוֹ רוּחַ אֱלֹהִים".