David said to God, “I have sinned greatly in doing this thing. Now, please take away the guilt of your servant, for I have acted very foolishly.”
In context
6But Levi and Benjamin he did not count among them, for the king’s command was abhorrent to Joab. 7This thing was evil in the eyes of God, so he struck Israel. 8David said to God, “I have sinned greatly in doing this thing. Now, please take away the guilt of your servant, for I have acted very foolishly.” 9Yahweh spoke to Gad, David’s seer, saying, 10“Go and tell David: Thus says Yahweh — I offer you three things; choose one of them for yourself, and I will do it to you.”