0
A bastard shall not enter into the congregation of the LORD; even to his tenth generation. Deuteronomy 23:2
(Assuming David entered the congregation of the Lord)
Judas begat Phares ...
Phares ... [Phares was a "bastard" to God. (See Genesis 38:)]
[1] Esrom ...
[2] Aram ...
[3] Aminadab ...
[4] Naasson ...
[5] Salmon ...
[6] Booz ...
[7] Obed ...
[8] Jesse ....
[9] David. Matthew 1:3-5(See also Luke 3:31-33)