God uses even the worst actions of an evil tyrant to His advantage in raising up a leader. God took a man’s lifetime to develop Moses. And He used the very Egyptian system that oppressed Israel to raise up the leader to deliver them. Moses was providentially developed over the course of his lifetime to become the deliverer of the Exodus.
God used the Pharaoh’s own daughter to save Moses from the infanticide order that threatened all young Jewish males. You have to think that the Jews resisted this everywhere they could. I am sure Moses’ parents were not the only ones desperately trying to hide a male child from watching Egyptian eyes. Eventually in desperation, his mother hid him in the floating baby boat in the Nile, where he was discovered by the very daughter of the king, embraced as a human whose life was precious, and saved from his fate by the love of the enemy! This is the way God works.
Then Moses was handed over to Pharaoh’s own daughter and raised as her son in the finery of Egyptian royalty. He was given the best education, raised to be a prince, and became so identified with the culture that when he ran into Midian after murdering a cruel taskmaster, he is described as an Egyptian. He was the only Jew who could confront Pharaoh in his own courts, and God had made him just for that opportunity.
But first, God had years of desert living ahead for Moses. He would learn to lead by shepherding flocks, just like Israel had done before coming to Egypt. He would survive the desert and learn to teach others to do so. His impulsiveness would slowly fade in the life of a gentle shepherd in hiding… until God would call him to His purpose, and then all the experiences would come together in God’s providence. And this all took an extraordinary amount of time. An entire generation was slowly waiting, praying to God, groaning in need and waiting.