He built an altar to the Lord there and offered burnt offerings and fellowship offerings. Then the Lord answered prayer on behalf of the land, and the plague on Israel ended.