That settles BrandtMichael's assertion "David and Bathshebas baby was not punished rather he/she was immediately accepted into heaven and Gods presence..." as yet another non-biblical belief of the Bible-OnlyTM crowd.
10% of human beings in most cultures are not biologically related to the man they think is their father.
Roughly 10% incidence, with the result being ten generations excluded........
Talk about collective punishment! And you might not even know, you think you are the legitimate son of a good man and woman from a long and prestigious line and work hard to please the Lord your God - and bam - sorry the son of the son of the son of the son of a bastard.
We must all hope for salvation through faith in the Lord Jesus the Christ - because the LAW is rough!