Why have you despised the commandment of the Lord, doing evil in His sight? You have slain Uriah the Hittite with the sword and have taken his wife to be your wife. You have murdered him with the sword of the Ammonites. [Lev. 20:10; 24:17.]
Because David did what was right in the eyes of the Lord and turned not aside from anything that He commanded him all the days of his life, except in the matter of Uriah the Hittite.
Then David said to Ahimelech the Hittite and to Abishai son of Zeruiah, brother of Joab, Who will go down with me into the camp of Saul? And Abishai said, I will go down with you.