This comes after the episode where David commits adultery with Bathsheba and has her lawful husband killed in order to cover up his crime.
It is possible that David felt too compromised—because of his own failings—to impose the proper punishment.
Genesis 15:6 is a good verse to define righteousness:
Abram believed the LORD, and he credited it to him as righteousness.
This definition is supported by
The one who has clean hands and a pure heart, who does not trust in an idol or swear by a false god.
A righteous person is one who sincerely believes in the LORD and not other idols.
After having performed quite a bit of research, the most compelling and satisfying explanation I have come across reports that it is actually in Matthew that the written genealogy traces back Mary's bloodline to David... and not in Luke as some have supposed.
The following might be controversial, but In Matthew's genealogy of Christ, the man referred to as &...