Deuteronomy 23:2 New International Reader's Version (NIRV)

No one who was born to a woman who wasn't married can join in worship with the Lord's people. That also applies to the person's children for all time to come.

Deuteronomy 23

Deuteronomy 23:1-12