So all the elders of Israel came to the king at Hebron, and King David made a covenant with them before the Lord at Hebron; then they anointed David king over Israel.