The taking of a census was not in itself forbidden in the Law. The Bible does not say what objective moved David to number the people. However, 1 Chronicles 21:1 indicates that Satan incited him to do so. In any event, his military chief, Joab, knew that David's decision to register the people was wrong, and he tried to dissuade David from doing it. On David's part, there may have been wrong motive due to pride and trust in the numbers of his army, hence a failing to manifest full reliance on God. In any case, it is clear that on this occasion David's chief concern was not that of glorifying God.
In the Bible, King David's decision to conduct a census is mentioned in 2 Samuel 24 and 1 Chronicles 21. This act was seen as sinful because it reflected pride and a lack of trust in God to protect and provide for his people. The consequences of this census included a plague that affected Israel until David repented.
God knows.
God punish him.
yes, it hurts
Because David failed to show trust in God, and disobeyed him by doing an illegal census (counting) of the people.
no
Devil does not punish sinners because he wants everyone to sin. Angels do not punish in the Bible except under God's command because it is God who can punish. It is God's authority and God's alone. Because Jesus died on the cross to forgive our sins and through God's grace, forgiveness and not punishment is what He desires.
by taking a census. God told him to fight an enemy and that he would win with God's help, but, lacking faith, Moses wanted a count of men (soldiers) so that he would feel more confident in the power of the men than in the power of God.
Because god will punish sinful people
ghandi
a plague sent by god to punish the infidels.
God will punish you