For I will defend this city to save it, for my own sake and for the sake of my servant David.
2 Kings 19:34

God keeps his promises and defends his people for the sake of his own name, not because they deserve it.