Then the angel of Yahweh commanded Gad to tell David, that David should go up, and raise an altar to Yahweh in the threshing floor of Ornan the Jebusite.
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.