2 Samuel 24:24-25

24 The king said to Araunah, No; but I will most assuredly buy it of you at a price. Neither will I offer burnt-offerings to Yahweh my God which cost me nothing. So David bought the threshing floor and the oxen for fifty shekels of silver.  25 David built there an altar to Yahweh, and offered burnt offerings and peace-offerings. So Yahweh was entreated for the land, and the plague was stayed from Israel.