Baby Moses escaped the existential threat of the Pharaoh's edict by being set adrift in the Nile.
The baby Moses, his existence endangered by the pharaoh's edict calling for all Hebrew sons to be slain, is set adrift in a basket on the Nile before being discovered--and adopted--by one of the pharaoh's wives.