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 and shouldn't have taken the census. Please forgive me, LORD, for doing this foolish thing."