18 The magicians tried to use their magic to make gnats appear, but they failed. There were gnats everywhere,
19 and the magicians said to the king, “God has done this!” But the king was stubborn and, just as the Lord had said, the king would not listen to Moses and Aaron.
20 The Lord said to Moses, “Early tomorrow morning go and meet the king as he goes to the river, and tell him that the Lord says, ‘Let my people go, so that they can worship me.
21 I warn you that if you refuse, I will punish you by sending flies on you, your officials, and your people. The houses of the Egyptians will be full of flies, and the ground will be covered with them.
22 But I will spare the region of Goshen, where my people live, so that there will be no flies there. I will do this so that you will know that I, the Lord, am at work in this land.
23 I will make a distinction between my people and your people. This miracle will take place tomorrow.’”
24 The Lord sent great swarms of flies into the king's palace and the houses of his officials. The whole land of Egypt was brought to ruin by the flies.