2 Samuel 24:10-14. David’s three choices.
David sinned and the Lord gave him the option to choose one of three consequences for his sin. David said he would rather fall into the hand of the Lord, for he knew how merciful He is, rather than the hand of man. God’s mercies are great, when His people repent and return to Him, He is merciful and forgiving.
" Now David’s heart troubled him after he had numbered the people. So David said to the Lord, “I have sinned greatly in what I have done. But now, O Lord, please take away the iniquity of Your servant, for I have acted very foolishly.” When David arose in the morning, the word of the Lord came to the prophet Gad, David’s seer, saying, “Go and speak to David, ‘Thus the Lord says, “I am offering you three things; choose for yourself one of them, which I will do to you.”’” So Gad came to David and told him, and said to him, “Shall seven years of famine come to you in your land? Or will you flee three months before your foes while they pursue you? Or shall there be three days’ pestilence in your land? Now consider and see what answer I shall return to Him who sent me.” Then David said to Gad, “I am in great distress. Let us now fall into the hand of the Lord for His mercies are great, but do not let me fall into the hand of man.”"
2 Samuel 24:10-14 New American Standard Bible (NASB)