7And to the walled town of Tyre, and to all the towns of the Hivites and the Canaanites: and they went out to the South of Judah at Beer-sheba.
8So after going through all the land in every direction, they came to Jerusalem at the end of nine months and twenty days.
9And Joab gave the king the number of all the people: there were in Israel eight hundred thousand fighting men able to take up arms; and the men of Judah were five hundred thousand.
10And after the people had been numbered, David's heart was troubled. And David said to the Lord, Great has been my sin in doing this; but now, O Lord, be pleased to take away the sin of your servant, for I have done very foolishly
11And David got up in the morning; now the word of the Lord had come to the prophet Gad, David's seer, saying,
12Go and say to David, The Lord says, Three things are offered to you: say which of them you will have, and I will do it to you.
13So Gad came to David, and gave him word of this and said to him, Are there to be three years when there is not enough food in your land? or will you go in flight from your haters for three months, while they go after you? or will you have three days of violent disease in your land? take thought and say what answer I am to give to him who sent me.