2 Samuel 24:19

Overview - 2 Samuel 24
David, tempted by Satan, forces Joab to number the people.
The captains, in nine months and twenty days, bring the muster of thirteen hundred thousand fighting men.
10 David repents, and having three plagues propounded by God, chooses the three days' pestilence.
15 After the death of three score and ten thousand, David by prayer prevents the destruction of Jerusalem.
18 David, by God's direction, purchases Araunah's threshing floor; where having sacrificed, the plague stays.
Treasury of Scripture Knowledge

2 Samuel 24:19  (King James Version)
And David, according to the saying of Gad, went up as the LORD commanded.

as the Lord
Genesis 6:22 ; 1 Chronicles 21:19 ; 2 Chronicles 20:20 ; 36:16 Nehemiah 9:26 ; Hebrews 11:8