1 Chronicles 21:8-12
21:8 David said to God, “I have sinned greatly by doing this! Now, please remove the guilt of your servant, for I have acted very foolishly.”
21:9 The Lord told Gad, David’s prophet,
21:10 “Go, tell David, ‘This is what the Lord says: “I am offering you three forms of judgment from which to choose. Pick one of them.”’”
21:11 Gad went to David and told him, “This is what the Lord says: ‘Pick one of these:
21:12 three years of famine, or three months being chased by your enemies and struck down by their swords, or three days being struck down by the Lord, during which a plague will invade the land and the Lord’s messenger will destroy throughout Israel’s territory.’ Now, decide what I should tell the one who sent me.”