Joab and the other commanders of King David's army were not able to convince David to not take a census.
"what the king had commanded"