1 Chronicles 21:7-10 King James Version (KJV)

7. And God was displeased with this thing; therefore he smote Israel.

8. And David said unto God, I have sinned greatly, because I have done this thing: but now, I beseech thee, do away the iniquity of thy servant; for I have done very foolishly.

9. And the Lord spake unto Gad, David’s seer, saying,

10. Go and tell David, saying, Thus saith the Lord, I offer thee three things: choose thee one of them, that I may do it unto thee.

1 Chronicles 21