God protected Moses from Pharaoh’s command to kill all the Hebrew baby boys by having him adopted by Pharaoh’s daughter and raised in the palace. But Moses chose to be identified with the Hebrew people. He killed an Egyptian and then fled to Midian to avoid punishment.
God sent plagues on Pharaoh and his people for refusing to let the Israelites go. Each plague demonstrated God’s power over the false gods of Egypt. Pharaoh’s magicians were no match for the true God.
God called Moses while he was watching flocks in the desert of Midian. God wanted Moses to return to Egypt and lead the Israelites out of slavery to the land of Canaan. But Moses objected several times to God’s call before submitting to his will.