43And the LORD said to Moses and Aaron, “This is the statute of the Passover: No foreigner is to eat of it.
44But any slave who has been purchased may eat of it, after you have circumcised him.
45A temporary resident or hired hand shall not eat the Passover.
46It must be eaten inside one house. You are not to take any of the meat outside the house, and you may not break any of the bones.
47The whole congregation of Israel must celebrate it.
48If a foreigner resides with you and wants to celebrate the LORD’s Passover, all the males in the household must be circumcised; then he may come near to celebrate it, and he shall be like a native of the land. But no uncircumcised man may eat of it.
49The same law shall apply to both the native and the foreigner who resides among you.”
50Then all the Israelites did this — they did just as the LORD had commanded Moses and Aaron.
51And on that very day the LORD brought the Israelites out of the land of Egypt by their divisions.
— Exodus 12:43-51