Exodus 8:16 – 32
New International Version (NIV)
The Plague of Gnats
16 Then the LORD said to Moses, “Tell Aaron, ‘Stretch out your staff and strike the dust of the ground,’ and throughout the land of Egypt the dust will become gnats.” 17 They did this, and when Aaron stretched out his hand with the staff and struck the dust of the ground, gnats came on people and animals. All the dust throughout the land of Egypt became gnats. 18 But when the magicians tried to produce gnats by their secret arts, they could not.
Since the gnats were on people and animals everywhere, 19 the magicians said to Pharaoh, “This is the finger of God.” But Pharaoh's heart was hard and he would not listen, just as the LORD had said.
The Plague of Flies
20 Then the LORD said to Moses, “Get up early in the morning and confront Pharaoh as he goes to the river and say to him, ‘This is what the LORD says: Let my people go, so that they may worship me. 21 If you do not let my people go, I will send swarms of flies on you and your officials, on your people and into your houses. The houses of the Egyptians will be full of flies; even the ground will be covered with them.
22 “ ‘But on that day I will deal differently with the land of Goshen, where my people live; no swarms of flies will be there, so that you will know that I, the LORD, am in this land. 23 I will make a distinction between my people and your people. This sign will occur tomorrow.’ ”
24 And the LORD did this. Dense swarms of flies poured into Pharaoh's palace and into the houses of his officials; throughout Egypt the land was ruined by the flies.
25 Then Pharaoh summoned Moses and Aaron and said, “Go, sacrifice to your God here in the land.”
26 But Moses said, “That would not be right. The sacrifices we offer the LORD our God would be detestable to the Egyptians. And if we offer sacrifices that are detestable in their eyes, will they not stone us? 27 We must take a three-day journey into the wilderness to offer sacrifices to the LORD our God, as he commands us.”
28 Pharaoh said, “I will let you go to offer sacrifices to the LORD your God in the wilderness, but you must not go very far. Now pray for me.”
29 Moses answered, “As soon as I leave you, I will pray to the LORD, and tomorrow the flies will leave Pharaoh and his officials and his people. Only let Pharaoh be sure that he does not act deceitfully again by not letting the people go to offer sacrifices to the LORD.”
30 Then Moses left Pharaoh and prayed to the LORD, 31 and the LORD did what Moses asked. The flies left Pharaoh and his officials and his people; not a fly remained. 32 But this time also Pharaoh hardened his heart and would not let the people go.
From BibleGateway.com: http://www.biblegateway.com/passage/?search=Exodus 8:16-32&version=NIV