The Israelites spent 400 years in Egypt. They were invited to settle in Egypt to escape the famine in their own land. At first they were honored guests but that status changed.
Now there arose a new king over Egypt, who did not know Joseph. And he said to his people, “Behold, the people of Israel are too many and too mighty for us. Come, let us deal shrewdly with them, lest they multiply, and, if war breaks out, they join our enemies and fight against us and escape from the land.”
Therefore they set taskmasters over them to afflict them with heavy burdens. They built for Pharaoh store cities, Pithom and Raamses. (Exodus 1:8-11)
The people prayed to God for freedom from their bondage and God chose Moses to answer their prayers.
Then the Lord said, “I have surely seen the affliction of my people who are in Egypt and have heard their cry because of their taskmasters. I know their sufferings, and I have come down to deliver them out of the hand of the Egyptians and to bring them up out of that land to a good and broad land, a land flowing with milk and honey, to the place of the Canaanites, the Hittites, the Amorites, the Perizzites, the Hivites, and the Jebusites. And now, behold, the cry of the people of Israel has come to me, and I have also seen the oppression with which the Egyptians oppress them. Come, I will send you to Pharaoh that you may bring my people, the children of Israel, out of Egypt.” (Exodus 3:7-10)
When Jesus was being crucified some of the spectators challenged him to prove he was the Son of God by coming down from the cross.
And those who passed by derided him, wagging their heads and saying, “You who would destroy the temple and rebuild it in three days, save yourself! If you are the Son of God, come down from the cross.”
So also the chief priests, with the scribes and elders, mocked him, saying, “He saved others; he cannot save himself. He is the King of Israel; let him come down now from the cross, and we will believe in him.”
If he had chosen to do so he could have come down from the cross. He had earlier stated that if he asked, God would send twelve legions of angels to help him.
And behold, one of those who were with Jesus stretched out his hand and drew his sword and struck the servant of the high priest and cut off his ear. Then Jesus said to him, “Put your sword back into its place. For all who take the sword will perish by the sword. Do you think that I cannot appeal to my Father, and he will at once send me more than twelve legions of angels? But how then should the Scriptures be fulfilled, that it must be so?”