All the leaders of Israel had come to Hebron. King David made an agreement with them at Hebron in front of the Lord. So they anointed David king of Israel.