Deuteronomy 23:8 (KJV)

The children that are begotten of them shall enter into the congregation of the LORD in their third generation.