“And there went a man of the house of Levi, and took to wife a daughter of Levi. And the woman conceived, and bore a son; and when she saw him that he was a goodly child, she hid him three months.” – Exodus 2:1-2, JPS 1917 Tanach
Towards the end of Joseph’s life, he explained to his brothers, that G-d would surely visit his people – pekod pekodti – a redeemer shall come. This was the assurance given to his brothers, so that their descendants who would meet with challenging times, culminating in their enslavement in Egypt, would have hope for their redemption down the road. After 136 years of slavery, a redeemer was born, who was named Moses. Torah describes him as טוב – a “goodly” child. Commentary explains that, “When he was born the whole house became filled with light” (Rashi on Genesis 2:2, Sotah 12a; sefaria.org).
Additionally, “the meaning of this goodliness is that she saw in him some unique quality which, in her opinion, foreshadowed that a miracle would happen to him and he would be saved” (Nachmanides, sefaria.org). Therefore, she took it upon herself to seek a way to save him; and, after three months she placed him in an ark (תבת) that was “made of reeds, and “daubed it with slime and with pitch; and she put the child therein” (Exodus 2:3), and she laid the ark near the reeds, by the bank of the River Nile. Thus, the prophecy was set in motion, as conveyed by the sages, “that Miriam prophesied, ‘Mother is destined to bear a son who will deliver Israel’” (Nachmanides, sefaria.org).
All of this was required, because of the decree that had gone out from Pharoah’s court, “And Pharaoh charged all his people, saying: ‘Every son that is born ye shall cast into the river, and every daughter ye shall save alive” (Exodus 1:22). Yet, that day, Pharaoh’s daughter, who was named Batya, was by the river, and saw the child. She brought the child into the court, to raise as her son. Thus, was the redeemer’s life preserved in the very place that the command had been issued against his life. Moreover, Moshe’s sister, Miriam was watching nearby the river to see what would happen; Pharaoh’s daughter, Batya told her to fetch a Hebrew woman to nurse the child; so, of course, Miriam brought the child’s mother to Batya, to nurse him for two years. So, Moshe grew up cognizant of his Hebrew heritage, because of the instruction given to him by his natural birth mother.