The story of Moses starts when the Israelites were under the slavery of the Egyptians and were treated horribly. One faithful day the king of Egypt sent a order out to the kingdom that all Israelite babies would be dunked in the water where the crocodiles were. He wanted to make sure that those babies wont grow up to be strong men who would one day overthrow him.
I can't let those boys grow up and defeat me and my kingdom. GUARDS! Go throw the new born baby boys in the river Nile.
My Dear baby boy I pray to god that he will save your life,
This boy will be my son.
The princess later found him and made him his adopted son.
One of the many women out of the Israelite ladies at the time who heard the news decided to protect her baby no matter what. She hid the fact that she was pregnant and decided to raise the baby finding out it was a boy. However, she quickly realised that it would not be possible to do that. So, she put her baby boy in a basket and set him float along the Nile river leaving his fate up to god.