1 Chronicles 20:1

20:1 In the spring, at the time when kings normally conduct wars, Joab led the army into battle and devastated the land of the Ammonites. He went and besieged Rabbah, while David stayed in Jerusalem. Joab defeated Rabbah and tore it down.

1 Chronicles 21:17

21:17 David said to God, “Was I not the one who decided to number the army? I am the one who sinned and committed this awful deed! As for these sheep – what have they done? O Lord my God, attack me and my family, but remove the plague from your people!”

1 Chronicles 28:1

David Commissions Solomon to Build the Temple

28:1 David assembled in Jerusalem all the officials of Israel, including the commanders of the tribes, the commanders of the army divisions that served the king, the commanders of units of a thousand and a hundred, the officials who were in charge of all the property and livestock of the king and his sons, the eunuchs, and the warriors, including the most skilled of them.