David built an altar to Yahweh there, and he offered burnt offerings and fellowship offerings. Then Yahweh responded to his prayer for the land and brought the plague to a halt from upon Israel.