The LORD spoke to Moses and Aaron.
References for Exodus 7:8
He said, "Pharaoh will say to you, 'Do a miracle.' When he does, speak to Aaron. Tell him, 'Take your wooden staff and throw it down in front of Pharaoh.' It will turn into a snake."
So Moses and Aaron went to Pharaoh. They did exactly as the LORD had commanded them. Aaron threw his staff down in front of Pharaoh and his officials. It turned into a snake.
Then Pharaoh sent for wise men and those who do evil magic. By doing their magic tricks, the Egyptian magicians did the same things Aaron had done.
Each one threw his staff down. Each staff turned into a snake. But Aaron's staff swallowed theirs up.
In spite of that, Pharaoh's heart became stubborn. He wouldn't listen to them, just as the LORD had said.