1 Chronicles 21:11-15

11 So Gad came to David and said to him, “Thus says the  Lord, ‘Choose what you will: 12 either a three years of famine, or three months of devastation by your foes while the sword of your enemies overtakes you, or else three days of the sword of the  Lord, pestilence on the land, with the angel of the  Lord destroying throughout all the territory of Israel.’ Now decide what answer I shall return to him who sent me.” 13 Then David said to Gad, “I am in great distress. Let me fall into the hand of the  Lord, for his mercy is very great, but do not let me fall into the hand of man.”

14 So the  Lord sent a pestilence on Israel, and 70,000 men of Israel fell. 15 And God sent the angel to Jerusalem to destroy it, but as he was about to destroy it, the  Lord saw, and he b relented from the calamity. And he said to the angel who was working destruction, “It is enough; now stay your hand.” And the angel of the  Lord was standing by the threshing floor of Ornan the Jebusite.
Copyright information for ESV