David was conscience-stricken1 after he had counted the fighting men, and he said to the LORD, "I have sinned2 greatly in what I have done. Now, O LORD, I beg you, take away the guilt of your servant. I have done a very foolish thing.3"
References for 2 Samuel 24:10
Before David got up the next morning, the word of the LORD had come to Gad4 the prophet, David's seer:5
References for 2 Samuel 24:11
"Go and tell David, 'This is what the LORD says: I am giving you three options. Choose one of them for me to carry out against you.' "
So Gad went to David and said to him, "Shall there come upon you three years of famine6 in your land? Or three months of fleeing from your enemies while they pursue you? Or three days of plague7 in your land? Now then, think it over and decide how I should answer the one who sent me."
References for 2 Samuel 24:13
David said to Gad, "I am in deep distress. Let us fall into the hands of the LORD, for his mercy8 is great; but do not let me fall into the hands of men."
References for 2 Samuel 24:14
So the LORD sent a plague on Israel from that morning until the end of the time designated, and seventy thousand of the people from Dan to Beersheba died.9
References for 2 Samuel 24:15
When the angel stretched out his hand to destroy Jerusalem, the LORD was grieved10 because of the calamity and said to the angel who was afflicting the people, "Enough! Withdraw your hand." The angel of the LORD 11 was then at the threshing floor of Araunah the Jebusite.
References for 2 Samuel 24:16
When David saw the angel who was striking down the people, he said to the LORD, "I am the one who has sinned and done wrong. These are but sheep.12 What have they done?13 Let your hand fall upon me and my family."14
References for 2 Samuel 24:17
On that day Gad went to David and said to him, "Go up and build an altar to the LORD on the threshing floor of Araunah15 the Jebusite."
References for 2 Samuel 24:18
So David went up, as the LORD had commanded through Gad.
When Araunah looked and saw the king and his men coming toward him, he went out and bowed down before the king with his face to the ground.