And the Lord said to Moses, “See, I have made you like God to Pharaoh, and your brother Aaron shall be your prophet. You shall speak all that I command you, and your brother Aaron shall tell Pharaoh to let the people of Israel go out of his land. But I will harden Pharaoh’s heart, and though I multiply my signs and wonders in the land of Egypt, Pharaoh will not listen to you. Then I will lay my hand on Egypt and bring my hosts, my people the children of Israel, out of the land of Egypt by great acts of judgment. The Egyptians shall know that I am the Lord, when I stretch out my hand against Egypt and bring out the people of Israel from among them.” Moses and Aaron did so; they did just as the Lord commanded them. Now Moses was eighty years old, and Aaron eighty-three years old, when they spoke to Pharaoh.
Then the Lord said to Moses and Aaron, “When Pharaoh says to you, ‘Prove yourselves by working a miracle,’ then you shall say to Aaron, ‘Take your staff and cast it down before Pharaoh, that it may become a serpent.’” So Moses and Aaron went to Pharaoh and did just as the Lord commanded. Aaron cast down his staff before Pharaoh and his servants, and it became a serpent. Then Pharaoh summoned the wise men and the sorcerers, and they, the magicians of Egypt, also did the same by their secret arts. For each man cast down his staff, and they became serpents. But Aaron’s staff swallowed up their staffs. Still Pharaoh’s heart was hardened, and he would not listen to them, as the Lord had said.
— Exodus 7:1-13 ESV