So there at Hebron, David made a covenant before the lord with all the elders of Israel. And they anointed him king of Israel, just as the lord had promised through Samuel.