David built an altar to the Lord there, and presented burnt offerings and friendship offerings. The Lord answered his prayer for the country, and the plague on Israel was stopped.