Exodus 8:12-13
8:12 Then Moses and Aaron went out from Pharaoh, and Moses cried to the Lord because of the frogs that he had brought on Pharaoh.
8:13 The Lord did as Moses asked – the frogs died out of the houses, the villages, and the fields.
Exodus 8:30-31
8:30 So Moses went out from Pharaoh and prayed to the Lord,
8:31 and the Lord did as Moses asked – he removed the swarms of flies from Pharaoh, from his servants, and from his people. Not one remained!