But David's heart smote him after he had numbered the people. David said to the Lord, I have sinned greatly in what I have done. I beseech You, O Lord, take away the iniquity of Your servant, for I have done very foolishly.