Trying to cover up sin but ending up committing murder ...
When David lay with Bathsheba and she became pregnant,
he tried to cover up the fact by summoning Uriah, her husband, from battle,
hoping he would go to his wife's bed so that it might appear the child was his own.
But when Uriah didn't comply, David plotted to have him killed.
He sent a letter by Uriah's own hand to Joab,
commanding that Uriah be placed in the front lines of battle
where the fighting was fiercest, ensuring his death.
In my opinion, at this time,
David wasn't just trying to cover up
the fact that he had lain with Bathsheba and impregnated her;
he was also attempting to eliminate her husband, Uriah,
so that he could make Bathsheba his own wife
(2 Sam. 11:4-27).