Again the anger of the LORD burned against Israel, and he incited David against them, saying, “Go and take a census of Israel and Judah.”
So the king said to Joab and the army commanders with him, “Go throughout the tribes of Israel from Dan to Beersheba and enroll the fighting men, so that I may know how many there are.”
But Joab replied to the king, “May the LORD your God multiply the troops a hundred times over, and may the eyes of my lord the king see it. But why does my lord the king want to do such a thing?”
The king’s word, however, overruled Joab and the army commanders; so they left the presence of the king to enroll the fighting men of Israel.
After crossing the Jordan, they camped near Aroer, south of the town in the gorge, and then went through Gad and on to Jazer. They went to Gilead and the region of Tahtim Hodshi, and on to Dan Jaan and around toward Sidon. Then they went toward the fortress of Tyre and all the towns of the Hivites and Canaanites. Finally, they went on to Beersheba in the Negev of Judah.
After they had gone through the entire land, they came back to Jerusalem at the end of nine months and twenty days.
Joab reported the number of the fighting men to the king: In Israel there were eight hundred thousand able-bodied men who could handle a sword, and in Judah five hundred thousand.
David was conscience-stricken after he had counted the fighting men, and he said to the LORD, “I have sinned greatly in what I have done. Now, LORD, I beg you, take away the guilt of your servant. I have done a very foolish thing.”
Before David got up the next morning, the word of the LORD had come to Gad the prophet, David’s seer: “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 on you three years of famine in your land? Or three months of fleeing from your enemies while they pursue you? Or three days of plague in your land? Now then, think it over and decide how I should answer the one who sent me.”
David said to Gad, “I am in deep distress. Let us fall into the hands of the LORD, for his mercy is great; but do not let me fall into human hands.”
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.