David built there an altar to the Lord and offered burnt offerings and peace offerings. So the Lord heeded the prayers for the land, and Israel's plague was stayed.