In the closing verse of the last chapter, the law from Pharaoh said every male child was to be thrown into the river. God is a very wise God. He allowed Moses to fulfil the demands of that law and be in the river. Then God sent Pharaoh’s daughter to redeemed Moses from the river, properly punching a hole in the fathers command. We call it grace. What grace does is to create a counter balance to the demands of the law. Even in the old testament, God pops in this special gift just to help mankind. Here is Eph.2:8-9: ”For by grace are ye saved through faith; and that not of yourselves: it is the gift of God: Not of works, lest any man should boast”(KJV). There is no reason why Moses should not have been killed, except that grace covered him. The opportunity for this coverage is magnified in our time, with the arrival of Jesus Christ. David makes this same reference in Psa.18:16. God by a miraculous interference sent and drew him out of many waters. God is interested in your case. The same is referenced in 2Sam.22:47, when he was delivered from the hands of Saul. Sarah Koontz, founder of Living by Design says she mistakenly believed that grace was a New Testament concept. She quotes 2Tim. 1:9 to show that grace is the foundation of all scripture. Ask Noah.
And the child grew, and she brought him unto Pharaoh’s daughter, and he became her son. And she called his name Moses: and she said, Because I drew him out of the water. Exodus 2:10 KJV