Exodus 12:48-51

12:48 “When a foreigner lives with you and wants to observe the Passover to the Lord, all his males must be circumcised, and then he may approach and observe it, and he will be like one who is born in the land – but no uncircumcised person may eat of it. 12:49 The same law will apply to the person who is native-born and to the foreigner who lives among you.”

12:50 So all the Israelites did exactly as the Lord commanded Moses and Aaron. 12:51 And on this very day the Lord brought the Israelites out of the land of Egypt by their regiments.