Exodus 12:21-32 ESV
Then Moses called all the elders of Israel and said to them, “Go and select lambs for yourselves according to your clans, and kill the Passover lamb. Take a bunch of hyssop and dip it in the blood that is in the basin, and touch the lintel and the two doorposts with the blood that is in the basin. None of you shall go out of the door of his house until the morning. For the LORD will pass through to strike the Egyptians, and when he sees the blood on the lintel and on the two doorposts, the LORD will pass over the door and will not allow the destroyer to enter your houses to strike you. You shall observe this rite as a statute for you and for your sons forever. And when you come to the land that the LORD will give you, as he has promised, you shall keep this service. And when your children say to you, ‘What do you mean by this service?’ you shall say, ‘It is the sacrifice of the LORD’s Passover, for he passed over the houses of the people of Israel in Egypt, when he struck the Egyptians but spared our houses.’” And the people bowed their heads and worshiped.
Then the people of Israel went and did so; as the LORD had commanded Moses and Aaron, so they did.
At midnight the LORD struck down all the firstborn in the land of Egypt, from the firstborn of Pharaoh who sat on his throne to the firstborn of the captive who was in the dungeon, and all the firstborn of the livestock. And Pharaoh rose up in the night, he and all his servants and all the Egyptians. And there was a great cry in Egypt, for there was not a house where someone was not dead. Then he summoned Moses and Aaron by night and said, “Up, go out from among my people, both you and the people of Israel; and go, serve the LORD, as you have said. Take your flocks and your herds, as you have said, and be gone, and bless me also!”
ESV: English Standard Version 2016