2 Samuel 24:10 NLT

10 But after he had taken the census, David’s conscience began to bother him. And he said to the LORD, “I have sinned greatly by taking this census. Please forgive my guilt, LORD, for doing this foolish thing.”