All the elders of Israel came to the king at Hebron, where King David made an agreement with them in the Lord's presence. Then they anointed him king of Israel.