2 Samuel 24
15 So the LORD sent a plague upon Israel from that morning until the appointed time, and seventy thousand of the people from Dan to Beersheba died.
16But when the angel stretched out his hand to destroy Jerusalem, the LORD relented from the calamity and said to the angel who was destroying the people, “Enough! Withdraw your hand now!” At that time the angel of the LORD was by the threshing floor of Araunah the Jebusite. ...
18And that day Gad came to David and said to him, “Go up and build an altar to the LORD on the threshing floor of Araunah the Jebusite.” 19So David went up at the word of Gad, just as the LORD had commanded. ...
So David bought the threshing floor and the oxen for fifty shekels of silver. 25And there he built an altar to the LORD and offered burnt offerings and peace offerings.
Then the LORD answered the prayers on behalf of the land, and the plague upon Israel was halted.
Did God stop the plague before or after David's offerings?