1 Chronicles 21:17

17 and David said to God, "Wasn't it I who ordered the numbering of the people? I'm the sinner, the one responsible for this evil. But these sheep—what have they done? LORD, my God, turn your hand against me and my household, but spare your people from the plague."