God was displeased with this thing; therefore he struck Israel.
David’s response to Gad’s instructions indicated his true repentance. He left the decision about punishment entirely in God’s hands and did not seek to control it.