Found 3 precise matches across Summaries and Chronicles.
David sins by taking a census of the people, resulting in a plague on Israel. He repents and offers a sacrifice, and the plague is stopped.
2 Samuel 24:24 (LSB)