Then the Lord said to Moses, “Say to Aaron, ‘Stretch out your staff and strike the dust of the earth, that it may become gnats through all the land of Egypt.’”They did so; and Aaron stretched out his hand with his staff, and struck the dust of the earth, and there were gnats on man and beast. All the dust of the earth became gnats through all the land of Egypt. The magicians tried with their secret arts to bring forth gnats, but they could not; so there were gnats on man and beast. Then the magicians said to Pharaoh, “This is the finger of God.” But Pharaoh’s heart was hardened, and he did not listen to them, as the Lord had said.
Now the Lord said to Moses, “Rise early in the morning and present yourself before Pharaoh, as he comes out to the water, and say to him, ‘Thus says the Lord, “Let My people go, that they may serve Me. For if you do not let My people go, behold, I will send swarms of flies on you and on your servants and on your people and into your houses; and the houses of the Egyptians will be full of swarms of flies, and also the ground on which they dwell. But on that day I will set apart the land of Goshen, where My people are living, so that no swarms of flies will be there, in order that you may know that I, the Lord, am in the midst of the land. I will put a division between My people and your people. Tomorrow this sign will occur.”’” Then the Lord did so. And there came great swarms of flies into the house of Pharaoh and the houses of his servants and the land was laid waste because of the swarms of flies in all the land of Egypt.
Pharaoh called for Moses and Aaron and said, “Go, sacrifice to your God within the land.” But Moses said, “It is not right to do so, for we will sacrifice to the Lord our God what is an abomination to the Egyptians. If we sacrifice what is an abomination to the Egyptians before their eyes, will they not then stone us?We must go a three days’ journey into the wilderness and sacrifice to the Lord our God as He commands us.” Pharaoh said, “I will let you go, that you may sacrifice to the Lord your God in the wilderness; only you shall not go very far away. Make supplication for me.” Then Moses said, “Behold, I am going out from you, and I shall make supplication to the Lord that the swarms of flies may depart from Pharaoh, from his servants, and from his people tomorrow; only do not let Pharaoh deal deceitfully again in not letting the people go to sacrifice to the Lord.”
So Moses went out from Pharaoh and made supplication to the Lord. 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 he did not let the people go.