Book of Deuteronomy
The Book of Deuteronomy prohibits certain members of the "ʿedah" from taking part in the "qahal of Yahweh". In particular, it excludes "mamzers", and men who were forcibly emasculated. The descendants of "mamzers," up to the tenth generation, were also prohibited by this law code from taking part in the "congregation of Yahweh".