2 Samuel 24:10

Amplified Bible (AMP)
But David’s heart (conscience) troubled him after he had counted the people. David said to the Lord, “I have sinned greatly in what I have done. But now, O Lord, please take away the sin of Your servant, for I have acted very foolishly.”

Read 2 Samuel 24:10 in other translations