Then the LORD said to Moses, "Rise up early in the morning and wait for Pharaoh, as he goes out to the water, and say to him, 'Thus says the LORD, "Let my people go, that they may serve me.
Else, if you will not let my people go, behold, I will send swarms of flies on you and your servants and your people, and into your houses; and the houses of the Egyptians shall be filled with swarms of flies, and also the ground on which they stand.
But on that day I will set apart the land of Goshen, where my people dwell, so that no swarms of flies shall be there; that you may know that I am the LORD in the midst of the earth.
Thus I will put a division between my people and your people. By tomorrow shall this sign be."'"
And the LORD did so; there came great swarms of flies into the house of Pharaoh and into his servants' houses, and in all the land of Egypt the land was ruined by reason of the flies.
Then Pharaoh called Moses and Aaron, and said, "Go, sacrifice to your God within the land."
But Moses said, "It would not be right to do so; for we shall sacrifice to the LORD our God offerings abominable to the Egyptians. If we sacrifice offerings abominable to the Egyptians before their eyes, will they not stone us?
We must go three days' journey into the wilderness and sacrifice to the LORD our God as he will command us."
So Pharaoh said, "I will let you go, to sacrifice to the LORD your God in the wilderness; only you shall not go very far away. Make entreaty for me."
Then Moses said, "Behold, I am going out from you and I will pray to the LORD that the swarms of flies may depart from Pharaoh, from his servants, and from his people, tomorrow; only let not Pharaoh deal falsely again by not letting the people go to sacrifice to the LORD."
So Moses went out from Pharaoh and prayed to the LORD.
And the LORD did as Moses asked, and removed the swarms of flies from Pharaoh, from his servants, and from his people; not one remained.
But Pharaoh hardened his heart this time also, and did not let the people go.