Deuteronomy 23:2

New International Reader's Version Bible (NIRV)
No one born to an unmarried woman can join in worship with the Lord’s people. That also applies to the person’s children for all time to come.

Read Deuteronomy 23:2 in other translations