For Yahweh will not forsake his people for his great name's sake, because it has pleased Yahweh to make you a people to himself.
so Jarchi interprets it, he swore, and takes it to have the same sense as in 1 Samuel 14:24.