David went up in obedience to Gad's command, just as the Lord had commanded.
2 Samuel 24:19 Meaning and Commentary
2 Samuel 24:19
And David, according to the saying of Gad, went up as the Lord commanded. ] From the place where he was in a lower part of the city to Mount Moriah, on which was the threshing floor, a place fit for winnowing corn when threshed.
When David saw the angel who was striking down the people, he said to the LORD, “I have sinned; I, the shepherd, have done wrong. These are but sheep. What have they done? Let your hand fall on me and my family.”
On that day Gad went to David and said to him, “Go up and build an altar to the LORD on the threshing floor of Araunah the Jebusite.”
So David went up, as the LORD had commanded through Gad.
When Araunah looked and saw the king and his officials coming toward him, he went out and bowed down before the king with his face to the ground.
Araunah said, “Why has my lord the king come to his servant?” “To buy your threshing floor,” David answered, “so I can build an altar to the LORD, that the plague on the people may be stopped.”