9And Joab gave up the sum of the number of the people unto the king: and there were in Israel eight hundred thousand valiant men that drew the sword; and the men of Judah were five hundred thousand men.
10And David's heart stroke him after that he had numbered the people. And David said unto the LORD, I have sinned greatly in that I have done: and now, I plead to you, O LORD, take away the iniquity of your servant; for I have done very foolishly.
11For when David was up in the morning, the word of the LORD came unto the prophet Gad, David's seer, saying,
12Go and say unto David, Thus says the LORD, I offer you three things; choose you one of them, that I may do it unto you.
13So Gad came to David, and told him, and said unto him, Shall seven years of famine come unto you in your land? or will you flee three months before yours enemies, while they pursue you? or that there be three days' pestilence in your land? now advise, and see what answer I shall return to him that sent me.