Summary: David takes a census of his fighting men in a way that is sinful. Yahweh gives him three choices for justice. After David’s choice is carried out for a while, he repents of asking for that and is told to offer a sacrifice at a very specific threshing floor. Read from the World English Bible.
https://www.studylight.org/commentaries/eng/bcc/2-samuel-24.html
A Famine of Three or Seven Years?
Why I read from the World English Bible
I read from the 2016 edition, linked to below:
There is also a 2019 edition:
There is also a 2019 edition: