2 Samuel 24:16-17 (ASV)
16 And when the angel stretched out his hand toward Jerusalem to destroy it, Jehovah repented him of the evil, and said to the angel that destroyed the people, It is enough; now stay thy hand. And the angel of Jehovah was by the threshing-floor of Araunah the Jebusite.
17 And David spake unto Jehovah when he saw the angel that smote the people, and said, Lo, I have sinned, and I have done perversely; but these sheep, what have they done? let thy hand, I pray thee, be against me, and against my father’s house.
About 2 Samuel 24: The chapter closes the book with a hard lesson about trust. The Lord is angry with Israel, and He permits David to count the people (verse 1). This census was not just a headcount for taxes or armies. It showed David looking at his own power instead of God’s provision. Joab warns him, but David insists on sending the men out to number every tribe from Beersheba to Dan (verses 3-9). When the count is done, David’s heart smites him. He admits he has done a foolish thing and asks for forgiveness (verse 10). Read the study notes
2 verses · Compare in parallel · Read all of 2 Samuel 24