When David got up in the morning, a revelation from the Lord had come to the prophet Gad, David's seer:
2 Samuel 24:11 In-Context
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.”