2 Samuel 24:25

24:25 Then David built an altar for the Lord there and offered burnt sacrifices and peace offerings. And the Lord accepted prayers for the land, and the plague was removed from Israel.

2 Samuel 24:1

David Displeases the Lord by Taking a Census

24:1 The Lord’s anger again raged against Israel, and he incited David against them, saying, “Go count Israel and Judah.”

2 Samuel 21:6

21:6 let seven of his male descendants be turned over to us, and we will execute them before the Lord in Gibeah of Saul, who was the Lord’s chosen one.” The king replied, “I will turn them over.”