The sin of taking the number of the people of The Lord

Now Satan, designing evil against Israel, put into David’s mind the impulse to take the number of Israel.
1 Chronicles 21:1

Then David said to God, Great has been my sin in doing this; but now, be pleased to take away the sin of your servant, for I have done very foolishly.
1 Chronicles 21:8

War because of the power and pride of great men against us. But God.

Now after this there was war with the Philistines at Gezer; then Sibbecai the Hushathite put to death Sippai, one of the offspring of the Rephaim; and they were overcome.
1 Chronicles 20:4

Thank you for your blessing Lord

And now you have been pleased to give your blessing to the family of your servant, so that it may go on for ever before you; you, O Lord, have given your blessing, and a blessing will be on it for ever.
1 Chronicles 17:27