"Every son that is born you shall cast into the river" (Exodus 1:22). Rabbi Shila said: All the children whom they cast in, the river would spit out into the wilderness, and the Holy One, blessed be He, would bring a rock to the mouth of each one, and a rock at its side: the rock between them would nurse them with honey and milk, and the rock at their side would anoint them with oil, like a beast that suckles her young. As it is said, "And He made him suck honey out of the rock" (Deuteronomy 32:13). Rav Yannai says: The Egyptians enslaved Israel only for one hour of the day of the Holy One, blessed be He, namely eighty-six years. For the magicians said to Pharaoh, A certain boy is destined to be born, and he will bring Israel out of Egypt. Pharaoh answered and said, Cast them into the river. For three years and a third they cast them into the river, until Moses was born; and when he was born they said to Pharaoh, Behold, he is born, and he is hidden from our eyes. He said to them, Since he is born, from now on do not cast the children into the river, but place upon them a harsh yoke to embitter their lives, as it is said, "And they made their lives bitter" (Exodus 1:14). "And a man went from the house of Levi, and the woman conceived and bore a daughter and called her name Miriam" - in those days the Egyptians began to embitter [memarer] the lives of the children of Israel. "And she conceived again and bore a son and called his name Aaron" - for in the days of her pregnancy Pharaoh began to pour out their males to the ground, and some of them to cast into the river.
The Nile Casts Out the Drowned Children and God Feeds Them
Yalkut Shimoni on Torah 165:2
כָּל הַבֵּן הַיִּלּוֹד הַיְּאֹרָה תַּשְׁלִיכֻהוּ, רַבִּי שִׁילָא אָמַר, כָּל הַיְּלָדִים שֶׁהִשְׁלִיכוּ הָיָה הַיְאוֹר פּוֹלֵט אוֹתָם בַּמִּדְבָּר, וְהָיָה הַקָּדוֹשׁ בָּרוּךְ הוּא מֵבִיא סֶלַע בְּפִי כָּל אֶחָד וְאֶחָד, וְסֶלַע מִצִּדּוֹ, וְהַסֶּלַע שֶׁבֵּינֵיהֶן הָיָה מֵנִיק אוֹתָם דְּבַשׁ וְחָלָב, וְהַסֶּלַע שֶׁבְּצִדֵּיהֶן הָיָה מֵסִיךְ אוֹתָן שֶׁמֶן כְּחַיָּה שֶׁהִיא מְמַסֶּכֶת אֶת בְּנָהּ. שֶׁנֶּאֱמַר (דברים לב, יג) "וַיֵּנִקֵהוּ דְבַשׁ מִסֶּלַע" וְגוֹ'. רַב יַנַּאי אוֹמֵר, לֹא הֶעֱבִידוּ הַמִּצְרִיִּים אֶת יִשְׂרָאֵל אֶלָּא שָׁעָה אַחַת מִיּוֹמוֹ שֶׁל הַקָּדוֹשׁ בָּרוּךְ הוּא, שְׁמוֹנִים וְשִׁשָׁה שָׁנָה, שֶׁאָמְרוּ הַחַרְטֻמִּים אֶל פַּרְעֹה עָתִיד נַעַר אֶחָד לְהִוָּלֵד וְהוּא יוֹצִיא אֶת יִשְׂרָאֵל מִמִּצְרַיִם, וְהֵשִׁיב פַּרְעֹה וְאָמַר הַשְׁלִיכוּם לַיְּאוֹר. שָׁלֹש שָׁנִים וּשְׁלִישׁ שָׁנָה הִשְׁלִיכוּם לַיְּאוֹר, עַד שֶנּוֹלַד מֹשֶׁה, וּמִשֶּׁנּוֹלַד, אָמְרוּ לוֹ, הֲרֵי נוֹלַד וְהוּא כָּמוּס בְּעֵינֵינוּ. אָמַר לָהֶם הוֹאִיל וְנוֹלַד מִכָּאן וָאֵילָךְ אַל תַּשְׁלִיכוּ אֶת הַיְּלָדִים לַיְּאוֹר, אֶלָּא תְּנוּ עֲלֵיהֶן עֹל קָשֶׁה לְמָרֵר עֲלֵיהֶן חָיֵיהֶן. שֶׁנֶּאֱמַר (לעיל פס' יד) "וַיְמָרְרוּ אֶת חַיֵּיהֶם". (שמות ב א) וַיֵּלֶךְ אִישׁ מִבֵּית לֵוִי, וַתַּהַר הָאִשָּׁה וַתֵּלֶד בַּת וַתִּקְרָא אֶת שְׁמָהּ מִרְיָם, בַּיָּמִים הַהֵם הֵחֵלּוּ הַמִּצְרִים לְמָרֵר חָיֵי בְּנֵי יִשְׂרָאֵל. וַתַּהַר עוֹד וַתֵּלֶד בֵּן וַתִּקְרָא אֶת שְׁמוֹ אַהֲרֹן, כִּי בִּימֵי הֶרְיוֹנָהּ הֵחֵל פַּרְעֹה לִשְׁפֹּךְ זְכוּרֵיהֶם אָרְצָה וּמֵהֶם לְהַשְׁלִיךְ בַּיְאוֹר.