Then the Lord said to Moses, “Stretch out your hand toward heaven, that there may be darkness over the land of Egypt, a darkness to be felt.” So Moses stretched out his hand toward heaven, and there was pitch darkness in all the land of Egypt three days. They did not see one another, nor did anyone rise from his place for three days, but all the people of Israel had light where they lived. Then Pharaoh called Moses and said, “Go, serve the Lord; your little ones also may go with you; only let your flocks and your herds remain behind.” But Moses said, “You must also let us have sacrifices and burnt offerings, that we may sacrifice to the Lord our God. Our livestock also must go with us; not a hoof shall be left behind, for we must take of them to serve the Lord our God, and we do not know with what we must serve the Lord until we arrive there.” But the Lord hardened Pharaoh’s heart, and he would not let them go. Then Pharaoh said to him, “Get away from me; take care never to see my face again, for on the day you see my face you shall die.” Moses said, “As you say! I will not see your face again.”
The Lord said to Moses, “Yet one plague more I will bring upon Pharaoh and upon Egypt. Afterward he will let you go from here. When he lets you go, he will drive you away completely. Speak now in the hearing of the people, that they ask, every man of his neighbor and every woman of her neighbor, for silver and gold jewelry.” And the Lord gave the people favor in the sight of the Egyptians. Moreover, the man Moses was very great in the land of Egypt, in the sight of Pharaoh’s servants and in the sight of the people.
So Moses said, “Thus says the Lord: ‘About midnight I will go out in the midst of Egypt, and every firstborn in the land of Egypt shall die, from the firstborn of Pharaoh who sits on his throne, even to the firstborn of the slave girl who is behind the handmill, and all the firstborn of the cattle. There shall be a great cry throughout all the land of Egypt, such as there has never been, nor ever will be again. But not a dog shall growl against any of the people of Israel, either man or beast, that you may know that the Lord makes a distinction between Egypt and Israel.’ And all these your servants shall come down to me and bow down to me, saying, ‘Get out, you and all the people who follow you.’ And after that I will go out.” And he went out from Pharaoh in hot anger. Then the Lord said to Moses, “Pharaoh will not listen to you, that my wonders may be multiplied in the land of Egypt.”
Moses and Aaron did all these wonders before Pharaoh, and the Lord hardened Pharaoh’s heart, and he did not let the people of Israel go out of his land.
–Exodus 10:21-11:10 ESV