After committing adultery David conceives a plan to get rid of Uriah.His plan involves getting the Israelites close to the wall of their enemies which culminates in the death of innocent men.
2 Samuel 11:17 ESV
And the men of the city came out and fought with Joab, and some of the servants of David among the people fell. Uriah the Hittite also died.
When the Prophet rebukes David he only makes reference to the adultery case and the death of Uriah.There is no mention of the innocent men who perished along with Uriah.
2 Samuel 12:9-10 ESV
Why have you despised the word of the Lord, to do what is evil in his sight? You have struck down Uriah the Hittite with the sword and have taken his wife to be your wife and have killed him with the sword of the Ammonites. 10 Now therefore the sword shall never depart from your house, because you have despised me and have taken the wife of Uriah the Hittite to be your wife.’
Why was David not rebuked for the death of innocent men?