The Lord's anger burned against Israel again, and it stirred up David against them to say: "Go, count [the people of] Israel and Judah."
References for 2 Samuel 24:1
So the king said to Joab, the commander of his army, "Go through all the tribes of Israel from Dan to Beer-sheba and register the troops so I can know their number."
References for 2 Samuel 24:2
Joab replied to the king, "May the Lord your God multiply the troops 100 times more than they are-while my lord the king looks on! But why does my lord the king want to do this?"
Yet the king's order prevailed over Joab and the commanders of the army. So Joab and the commanders of the army left the king's presence to register the troops of Israel.
They crossed the Jordan and camped in Aroer, south of the town in the middle of the valley, and then [proceeded] toward Gad and Jazer.
They went to Gilead and to the land of the Hittites and continued on to Dan-jaan and around to Sidon.
References for 2 Samuel 24:6
They went to the fortress of Tyre and all the cities of the Hivites and Canaanites. Afterwards, they went to the Negev of Judah at Beer-sheba.
When they had gone through the whole land, they returned to Jerusalem at the end of nine months and 20 days.
Joab gave the king the total of the registration of the troops. There were 800,000 fighting men from Israel and 500,000 men from Judah.
References for 2 Samuel 24:9