The Mosaic Law says that an Adulter will be Put to Death Leviticus 20:10 "If a man commits adultery with another man's wife--with the wife of his neighbor--both the adulterer and the adulteress are to be put to death."
David was Under the Mosaic Law & David was a murderer and adulterer. 2 Samuel 11:4 "So David sent messengers and took her, and she came to him, and he lay with her. (Now she had been purifying herself from her uncleanness.) Then she returned to her house.
When God makes a Commandment he does not change his Mind. Numbers 23:19 "God is not human, that he should lie, not a human being, that he should change his mind. Does he speak and then not act? Does he promise and not fulfill?"
God Does Not Show Partiallity Towards Anyone. Job 34:19 "who shows no partiality to princes and does not favor the rich over the poor, for they are all the work of his hands?" Colossians 3:25 "Anyone who does wrong will be repaid for their wrongs, and there is no favoritism." James 2:9 "But if you show favoritism, you sin and are convicted by the law as lawbreakers."
It is Impossible for God to Lie Hebrews 6:18 "so that by two unchangeable things, in which it is impossible for God to lie, we who have fled for refuge might have strong encouragement to hold fast to the hope set before us."
Current Theology States the Following :
1.God Commanded that anyone that Commited Adultery would be Put to Death.
2. God States that he is Not Partial.
3. It is Impossible for God to lie.
4. David while Under the Mosaic Law Commited Adultery. God forgave David, and David was not Put to death.
Both of these statements can't be true, there has to be a redaction, to ONE of the Following.
A - God did not Command the Israelites to Stone Adulterers.
B - God Showed Favoritism to David, thus telling a Lie.
Imagine the Implications on the World, if God Would have Forgiven Eve but Condemned Adam to Death.