Read this passage and open each verse for the full verse feed and commentary tools.
10And David`s heart smote him after that he had numbered the people. And David said unto Jehovah, I have sinned greatly in that which I have done: but now, O Jehovah, put away, I beseech thee, the iniquity of thy servant; for I have done very foolishly. 11And when David rose up in the morning, the word of Jehovah came unto the prophet Gad, David`s seer, saying, 12Go and speak unto David, Thus saith Jehovah, I offer thee three things: choose thee one of them, that I may do it unto thee. 13So Gad came to David, and told him, and said unto him, Shall seven years of famine come unto thee in thy land? or wilt thou flee three months before thy foes while they pursue thee? or shall there be three days` pestilence in thy land? now advise thee, and consider what answer I shall return to him that sent me. 14And David said unto Gad, I am in a great strait: let us fall now into the hand of Jehovah; for his mercies are great; and let me not fall into the hand of man.
2 Samuel 24:10-14 (ASV)